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

Create coppermine_to_dirstruct_skipper.py #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mondychan
Copy link

Since I had a couple of files missing in my source folder, I created this modified version of the script.

In this modified version of the script, I added a try-except block around the shutil.copy2 function, which catches any exceptions that may be raised if the file cannot be copied. I also added a check to see if the source file exists, and if it doesn't, the script skips it and prints a message to the console which files it skipped.

Since I had a couple of files missing in my source folder, I created this modified version of the script.

In this modified version of the script, I added a try-except block around the shutil.copy2 function, which catches any exceptions that may be raised if the file cannot be copied. I also added a check to see if the source file exists, and if it doesn't, the script skips it and prints a message to the console which files it skipped.
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