Project

Profile

Help

Issue #7918

Updated by pulpbot almost 3 years ago

 

 **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: 

 1. 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. 
 2. Ignore file exists errors either silently or raise a warning. 

Back