Basic chmod conversion tool


Keywords
python
Install
pip install chmod==0.0.8

Documentation

Travis

Installation

$ [sudo] pip install chmod

Functions

function __doc__
chmod.chmod(args) run chmod with arguments
chmod.check.executable(path) return True if path is executable
chmod.check.readable(path) return True if path is readable
chmod.check.writable(path) return True if path is writable
chmod.make.executable(path) make path executable
>>> chmod.chmod(["-R","755","path"])  # chmod -R 755 path
>>> chmod.check.executable("/bin/cat")
True
>>> chmod.check.writable("/bin/cat")
False
>>> chmod.check.readable("/bin/cat")
True
>>> chmod.make.executable("path/to/file")

python-readme-generator