chown#

barecat.Index.chown(path, uid, gid)[source]#

Change the owner and group of a file or directory.

Parameters:
  • path (str) – Path of the file or directory.

  • uid (int) – New user ID.

  • gid (int) – New group ID.

Raises:

FileNotFoundBarecatError – If the file or directory is not found.