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

Use shutil.move instead of copy2 to move files to local storage #93

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

blattms
Copy link

@blattms blattms commented Apr 24, 2023

For large files copying takes a lot of time and the request of the pgina filepond client time out. Therefore we resort to using shutil.move.

The OS should prefer to rename in this case if source and destination are on the same file system. At least on a Linux server this speeds up the moving from temporary to permanent storage tremendously.

The OS should prefer to rename in this case if source and destination
are on the same file system.
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

Successfully merging this pull request may close these issues.

1 participant