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

Uncaught shutil.Error if file is not found during backup #298

Closed
alichtman opened this issue Dec 11, 2021 · 0 comments · Fixed by #302
Closed

Uncaught shutil.Error if file is not found during backup #298

alichtman opened this issue Dec 11, 2021 · 0 comments · Fixed by #302
Labels
bug Something isn't working

Comments

@alichtman
Copy link
Owner

Backing up dotfolders...
Process Process-10:
Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/local/Cellar/[email protected]/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.9/site-packages/shallow_backup/utils.py", line 187, in copy_dir_if_valid
    copytree(source_dir, backup_path, symlinks=False)
  File "/usr/local/Cellar/[email protected]/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/shutil.py", line 565, in copytree
    return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
  File "/usr/local/Cellar/[email protected]/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/shutil.py", line 521, in _copytree
    raise Error(errors)
shutil.Error: [('/Users/alichtman/.config/zsh/.zinit/completions/_flameshot', '/Users/alichtman/shallow-backup/dotfiles/.config/zsh/.zinit/completions/_flameshot', "[Errno 2] No such file or directory: '/Users/alichtman/.config/zsh/.zinit/completions/_flameshot'")]

If should print File / Directory not found: PATH in red.

@alichtman alichtman added the bug Something isn't working label Dec 11, 2021
@alichtman alichtman changed the title Uncaught shutil.Error if file is not found Uncaught shutil.Error if file is not found during backup Dec 11, 2021
alichtman added a commit that referenced this issue Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant