Skip to content

unprotect: don't copy file if not hardlink or symlink #1373

Closed
@efiop

Description

@efiop

We can easily detect if it is a hardlink by checking a number of hardlinks with os.stat(it should be equal to 1).

NOTE: i don't think you can use stat().st_nlink > 1 on windows to detect hardlinks.

NOTE: should use our link list in state db to make sure that it is indeed our link.

Activity

added this to the Queue milestone on Nov 27, 2018
self-assigned this
on Nov 27, 2018
added a commit that references this issue on Dec 4, 2018
2d9ec10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @efiop

      Issue actions

        unprotect: don't copy file if not hardlink or symlink · Issue #1373 · iterative/dvc