better-adb-sync icon indicating copy to clipboard operation
better-adb-sync copied to clipboard

Input/output error

Open Explosion-Scratch opened this issue 1 year ago • 3 comments

My drive has a bad block and certain files cause input output error, but I can't seem to exclude them. Why not make it continue past errors like that?

Explosion-Scratch avatar Oct 23 '24 14:10 Explosion-Scratch

Traceback (most recent call last):
  File "/home/tjs/.local/bin/adbsync", line 8, in <module>
    sys.exit(main())
  File "/home/tjs/.local/share/pipx/venvs/betteradbsync/lib/python3.10/site-packages/BetterADBSync/__init__.py", line 374, in main
    files_tree_source = fs_source.get_files_tree(path_source, follow_links = args.copy_links)
  File "/home/tjs/.local/share/pipx/venvs/betteradbsync/lib/python3.10/site-packages/BetterADBSync/FileSystems/Base.py", line 45, in get_files_tree
    return self._get_files_tree(tree_path, statObject, follow_links = follow_links)
  File "/home/tjs/.local/share/pipx/venvs/betteradbsync/lib/python3.10/site-packages/BetterADBSync/FileSystems/Base.py", line 33, in _get_files_tree
    tree[filename] = self._get_files_tree(
  File "/home/tjs/.local/share/pipx/venvs/betteradbsync/lib/python3.10/site-packages/BetterADBSync/FileSystems/Base.py", line 33, in _get_files_tree
    tree[filename] = self._get_files_tree(
  File "/home/tjs/.local/share/pipx/venvs/betteradbsync/lib/python3.10/site-packages/BetterADBSync/FileSystems/Base.py", line 30, in _get_files_tree
    for filename, stat_object_child, in self.lstat_in_dir(tree_path):
  File "/home/tjs/.local/share/pipx/venvs/betteradbsync/lib/python3.10/site-packages/BetterADBSync/FileSystems/Local.py", line 31, in lstat_in_dir
    yield filename, self.lstat(self.join(path, filename))
  File "/home/tjs/.local/share/pipx/venvs/betteradbsync/lib/python3.10/site-packages/BetterADBSync/FileSystems/Local.py", line 27, in lstat
    return os.lstat(path)
    ```

Explosion-Scratch avatar Oct 23 '24 14:10 Explosion-Scratch

OSError: [Errno 5] Input/output error: "the file path here"

Explosion-Scratch avatar Oct 23 '24 14:10 Explosion-Scratch

This is a duplicate of #11 and should be closed @Explosion-Scratch !

drws avatar Jan 27 '25 06:01 drws