We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
shallow-backup/shallow_backup/utils.py
Line 84 in eaa2617
This should work for both files and directories. There should just be one method for this...
import shutil, errno def copy(src, dst): try: shutil.copytree(src, dst) except OSError as exc: # python >2.5 if exc.errno == errno.ENOTDIR: shutil.copy2(src, dst) else: raise
Add one more level of error checking for if the file doesn't exist at all. Fail gracefully by printing an error message.
The text was updated successfully, but these errors were encountered:
This works fine as it is so it's not getting in the next release, but it's going to block #125.
Sorry, something went wrong.
Jk, symlinking is the way to go.
No branches or pull requests
shallow-backup/shallow_backup/utils.py
Line 84 in eaa2617
This should work for both files and directories. There should just be one method for this...
Add one more level of error checking for if the file doesn't exist at all. Fail gracefully by printing an error message.
The text was updated successfully, but these errors were encountered: