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

are directory swaps possible? #2

Open
kgk opened this issue Jun 21, 2024 · 1 comment
Open

are directory swaps possible? #2

kgk opened this issue Jun 21, 2024 · 1 comment

Comments

@kgk
Copy link

kgk commented Jun 21, 2024

I tried and received "Invalid argument"

Use case is a deployment where files are placed in a deploy.tmp directory
and need to swapped atomically with a deploy
i.e.

put files in "deploy.tmp"

swap ("deploy", "deploy.tmp")

rm files in "deploy.tmp"

@nickovs
Copy link
Owner

nickovs commented Jun 22, 2024

On which OS are you trying this? Swapping directories should work. I just tested it on Linux and macOS but I don't have access to a Windows machine.

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

No branches or pull requests

2 participants