scripts
scripts copied to clipboard
Suggestion to use os.statvfs for immutable.py
I would have a suggestion to use os.statvfs for the immutable.py script; the ST_IMMUTABLE constant can be used. Please see: https://docs.python.org/3/library/os.html#os.statvfs
Thanks for pointing that out. I completely missed that call when I was writing this. I'll play with it this week when I get some time and will update the script if it works well in my tests.
While the documentation mentions ST_IMMUTABLE in the context of os.statvfs. I see no way to query that via os.statvfs.