mache.permissions.update_permissions

mache.permissions.update_permissions(base_paths, group, show_progress=True, group_writable=False, other_readable=True, workers=4, recursive=True)[source]

Update the group that a directory belongs to along with the “group” and “other” permissions for the directory

Parameters:
  • base_paths (str or list) – The base path(s) to recursively update permissions on

  • group (str) – The name of the group the contents of base_paths should belong to

  • show_progress (bool, optional) – Whether to show a progress bar

  • group_writable (bool, optional) – Whether to allow group write permissions

  • other_readable (bool, optional) – Whether to allow world read (and, where appropriate, execute) permissions

  • workers (int, optional) – Number of threads to parallelize across

  • recursive (bool, optional) – Whether to traverse the path(s) provided recursively