Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Behavior of copyTo/moveTo on mounts #69

Open
backbone87 opened this issue Apr 25, 2013 · 1 comment
Open

Behavior of copyTo/moveTo on mounts #69

backbone87 opened this issue Apr 25, 2013 · 1 comment

Comments

@backbone87
Copy link
Member

Several use cases... example structure:

  • / <- LocalAdapter A
  • /fileA1 <- file of A
  • /dirA1 <- dir of A
  • /dirA2 <- dir of A, LocalAdapter B mounted onto
  • /dirA2/fileB1 <- file of B
  • /dirA2/dirB1 <- dir of B
  • /dirV1 <- LocalAdapter C mounted onto, does not exists in A
  • /dirV1/fileC1 <- file of C
  • /dirV1/dirC1 <- dir of C

What should happen on:

  • mv dirV1 into dirA1
    • move mountpoint to dirA1/dirV1?
    • move dirV1/fileC1 to dirA1/dirV1/fileC1 and dirV1/dirC1 to dirA1/dirV1/dirC1?
  • mv dirA2 into dirA1
  • mv dirV1 over dirA1
  • mv dirA2 over dirA1
@tristanlins
Copy link
Member

Moving mount points is Forbidden. (It is also forbidden on unix systems)
Copying is allowed, but only if the target path is not a subpath of the source. (We need to make a general recursion protection here)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants