distrax.utils.fileio.change_permissions#
- distrax.utils.fileio.change_permissions(path, mode)[source]#
Change a files permission to the mode specified.
- Parameters:
- Return type:
- Returns:
True if successful else False
Examples
>>> distrax.utils.fileio.change_permissions("file", 0o775) True >>> distrax.utils.fileio.change_permissions("no_file",0o775) False