Skip to content

Applying in place changes file's permissions #5

@me-kell

Description

@me-kell

Create somefile and get permissions (644)

$ echo "x" > somefile
$ stat -c "%a %n" somefile
644 somefile

run PythonSed in place and get permissions:

$ python3 -c "from PythonSed import Sed; sed = Sed(in_place=''); sed.load_string('s/x/y/'); sed.apply('somefile')"
$ stat -c "%a %n" somefile
600 somefile

Permissions are changed to 600

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions