Skip to content

Preserve permissions of stored files #4578

@mgkwill

Description

@mgkwill

The goal of this feature would be to preserve permission of files added to dvc. In our particular use-case it is useful to add a directory of scripts, binaries and config to dvc. When we pull those files or get them, they have lost original permissions requiring us to restore permission manually or with something like acl.

This feature would add a new attribute in the .dvc file.
eg: filemode
Or something more OS agnostic.

This feature would add a new --track-permissions flag:
dvc add <file/dir> --track-permissions

Later when a user pulls or gets files/dir with dvc the permissions are restored.

If track-permissions is not used, files are treated like they are now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequesting a new featurep2-mediumMedium priority, should be done, but less important

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions