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

How can I move a file to a new folder with a new name atomically? #115

Open
garyhooper opened this issue Jul 3, 2020 · 0 comments
Open

Comments

@garyhooper
Copy link

I see no equivalent to FileManager's replaceItemAt (https://developer.apple.com/documentation/foundation/filemanager/2293212-replaceitemat). This is equivalent to linux mv dir1/old_name dir2/new_name.

Is this possible? If not, could it be added? The use case is downloading a file to a temporary folder with a unique name, and then moving it to its true home and name upon successful download.

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

1 participant