UnicodeDecodeError Traceback (most recent call last)
File ~/Documents/better-adb-sync-master/src/adbsync.py:6
3 import ADBSync
5 if __name__ == "__main__":
----> 6 ADBSync.main()
File ~/Documents/better-adb-sync-master/src/ADBSync/__init__.py:379, in main()
376 perror(path_source, e, FATAL)
378 try:
--> 379 files_tree_destination = fs_destination.get_files_tree(path_destination, follow_links = args.copy_links)
380 except FileNotFoundError:
381 files_tree_destination = None
File ~/Documents/better-adb-sync-master/src/ADBSync/FileSystems/Base.py:45, in FileSystem.get_files_tree(self, tree_path, follow_links)
43 def get_files_tree(self, tree_path: str, follow_links: bool = False):
44 statObject = self.lstat(tree_path)
---> 45 return self._get_files_tree(tree_path, statObject, follow_links = follow_links)
File ~/Documents/better-adb-sync-master/src/ADBSync/FileSystems/Base.py:33, in FileSystem._get_files_tree(self, tree_path, tree_path_stat, follow_links)
31 if filename in [".", ".."]:
32 continue
---> 33 tree[filename] = self._get_files_tree(
34 self.join(tree_path, filename),
35 stat_object_child,
36 follow_links = follow_links)
37 return tree
38 elif stat.S_ISREG(tree_path_stat.st_mode):
File ~/Documents/better-adb-sync-master/src/ADBSync/FileSystems/Base.py:33, in FileSystem._get_files_tree(self, tree_path, tree_path_stat, follow_links)
31 if filename in [".", ".."]:
32 continue
---> 33 tree[filename] = self._get_files_tree(
34 self.join(tree_path, filename),
35 stat_object_child,
36 follow_links = follow_links)
37 return tree
38 elif stat.S_ISREG(tree_path_stat.st_mode):
File ~/Documents/better-adb-sync-master/src/ADBSync/FileSystems/Base.py:30, in FileSystem._get_files_tree(self, tree_path, tree_path_stat, follow_links)
28 elif stat.S_ISDIR(tree_path_stat.st_mode):
29 tree = {".": (60 * (int(tree_path_stat.st_atime) // 60), 60 * (int(tree_path_stat.st_mtime) // 60))}
---> 30 for filename, stat_object_child, in self.lstat_in_dir(tree_path):
31 if filename in [".", ".."]:
32 continue
File ~/Documents/better-adb-sync-master/src/ADBSync/FileSystems/Android.py:188, in AndroidFileSystem.lstat_in_dir(self, path)
187 def lstat_in_dir(self, path: str) -> Iterable[Tuple[str, os.stat_result]]:
--> 188 for line in self.adb_shell(["ls", "-la", self.escape_path(path)]):
189 if self.RE_TOTAL.fullmatch(line):
190 continue
File ~/Documents/better-adb-sync-master/src/ADBSync/FileSystems/Android.py:94, in AndroidFileSystem.adb_shell(self, commands)
92 lines_to_yield: List[str] = []
93 while adb_line := self.proc_adb_shell.stdout.readline():
---> 94 adb_line = adb_line.decode(self.adb_encoding).rstrip("\r\n")
95 if adb_line == self.ADBSYNC_END_OF_COMMAND:
96 break
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 67: invalid start byte