Skip to content

Check tool_path folder permission before running os.chmod(tool_path, 0o755) #99

@IvanJosipovic

Description

@IvanJosipovic

Hello,

I’m trying to run this tool as a restricted user. However, it always calls chmod 755 on tool_path even if the permissions are already correct. Unfortunately, my user account doesn’t have permission to change file modes and the code fails.

os.chmod(tool_path, 0o755)

Can we please put in a check to see if the permissions are already set prior to running os.chmod(tool_path, 0o755)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions