Actions
Issue #7918
closedFilesystemExporter does not gracefully handle exporting multiple times
Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
Ticket moved to GitHub: "pulp/pulpcore/1949":https://github.com/pulp/pulpcore/issues/1949
The move to GHA exposed this bug (not sure how it wasn't an issue in Travis but I was able to reproduce locally).
If there are pre-existing files in the location that FileSystem attempts to export to you get a FileExistsError. This is common in the case where you're exporting multiple times.
Some potential solutions:
- Check that the directory is empty before exporting. Maybe even refuse to export but have a --force flag that will remove files in this directory.
- Ignore file exists errors either silently or raise a warning.
Related issues
Actions