chmod#

barecat.Index.chmod(path, mode)#

Change the mode of a file or directory.

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

  • mode (int) – New mode.

Raises:

FileNotFoundBarecatError – If the file or directory is not found.