-
Notifications
You must be signed in to change notification settings - Fork 59
[feature] Cannot test if file is immutable #572
Copy link
Copy link
Open
Labels
eldritchRelated to the Eldritch languageRelated to the Eldritch languagefeatureNew feature or requestNew feature or request
Description
Provide a way to test if a file is immutable (ideally via a file.stat(path) method. This allows scripts to check permissions before writing. Currently "permissions" is not effected by the immutable flag
➜ test golem list.eld
{"file_name": "file.txt", "size": 6, "owner": "lethicon", "group": "1000", "permissions": "100644", "modified": "2024-02-11 01:11:32 UTC", "type": "File"}
➜ test sudo chattr +i file.txt
➜ test golem list.eld
{"file_name": "file.txt", "size": 6, "owner": "lethicon", "group": "1000", "permissions": "100644", "modified": "2024-02-11 01:11:32 UTC", "type": "File"} Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
eldritchRelated to the Eldritch languageRelated to the Eldritch languagefeatureNew feature or requestNew feature or request