scripts icon indicating copy to clipboard operation
scripts copied to clipboard

Suggestion to use os.statvfs for immutable.py

Open guillaumep opened this issue 10 months ago • 2 comments

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

guillaumep avatar Jan 20 '25 17:01 guillaumep

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.

clausing avatar Jan 20 '25 17:01 clausing

While the documentation mentions ST_IMMUTABLE in the context of os.statvfs. I see no way to query that via os.statvfs.

clausing avatar Feb 19 '25 19:02 clausing