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

Error when following certain links #7

Open
RhetTbull opened this issue Sep 17, 2023 · 0 comments
Open

Error when following certain links #7

RhetTbull opened this issue Sep 17, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@RhetTbull
Copy link
Owner

RhetTbull commented Sep 17, 2023

Links inside sandbox containers cause an error:

dirsnap --snapshot /Users/rhet/Library/Containers/com.apple.Photos/ checked.db

When encountering this type of link:

lrwxr-xr-x rhet staff 19 B Sun Aug 20 12:48:03 2023 Filters ⇒ ../../../../Filters

Causes this:

Traceback (most recent call last):
  File "/Users/rhet/.local/bin/dirsnap", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/Users/rhet/.local/pipx/venvs/dirsnapshot/lib/python3.11/site-packages/dirsnapshot/__main__.py", line 90, in cli
    create_snapshot(
  File "/Users/rhet/.local/pipx/venvs/dirsnapshot/lib/python3.11/site-packages/dirsnapshot/dirsnapshot.py", line 78, in create_snapshot
    snapshot.init_from_dir(dirpath, snapshot_db, walk, description, filter_function)
  File "/Users/rhet/.local/pipx/venvs/dirsnapshot/lib/python3.11/site-packages/dirsnapshot/dirsnapshot.py", line 185, in init_from_dir
    self._snapshot(dirpath, walk, conn, cursor, filter_function)
  File "/Users/rhet/.local/pipx/venvs/dirsnapshot/lib/python3.11/site-packages/dirsnapshot/dirsnapshot.py", line 384, in _snapshot
    statinfo = osstat(pathstr)
               ^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/Users/rhet/Library/Containers/com.apple.Photos/Data/Library/Filters'
@RhetTbull RhetTbull added the bug Something isn't working label Sep 17, 2023
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

No branches or pull requests

1 participant