Skip to content

[feature] Cannot test if file is immutable #572

@nullmonk

Description

@nullmonk

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"} 

Metadata

Metadata

Assignees

No one assigned

    Labels

    eldritchRelated to the Eldritch languagefeatureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions