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

是否有选项忽略sync文件夹时读取出错的文件 #54

Closed
fengyichui opened this issue Oct 9, 2021 · 0 comments
Closed

是否有选项忽略sync文件夹时读取出错的文件 #54

fengyichui opened this issue Oct 9, 2021 · 0 comments

Comments

@fengyichui
Copy link

我用WSL来sync我的OneDrive到阿里云盘,但是OneDrive文件夹里有几个文件是系统的文件,同步到这几个系统文件时就会抛出异常提示"Permission denied"。
是否有选项忽略sync文件夹时读取出错的文件?

异常如下:

Traceback (most recent call last):
File "/home/liqiang/.local/bin/aliyunpan", line 8, in
sys.exit(main())
File "/home/liqiang/.local/lib/python3.9/site-packages/main.py", line 202, in main
cli()
File "/usr/lib/python3/dist-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/liqiang/.local/lib/python3.9/site-packages/main.py", line 171, in sync
commander.sync(path, upload_path, sync_time, time_out, chunk_size, retry)
File "/home/liqiang/.local/lib/python3.9/site-packages/aliyunpan/cli/cli.py", line 556, in sync
return self.sync(path.absolute(), upload_path, sync_time, time_out, chunk_size, retry, first=first)
File "/home/liqiang/.local/lib/python3.9/site-packages/aliyunpan/cli/cli.py", line 562, in sync
self.upload(path, upload_path, timeout=time_out, chunk_size=chunk_size, retry=retry)
File "/home/liqiang/.local/lib/python3.9/site-packages/aliyunpan/cli/cli.py", line 288, in upload
result = self._disk.upload_file(
File "/home/liqiang/.local/lib/python3.9/site-packages/aliyunpan/api/core.py", line 316, in upload_file
content_hash = get_sha1(path, self._chunk_size)
File "/home/liqiang/.local/lib/python3.9/site-packages/aliyunpan/api/utils.py", line 40, in get_sha1
with open(path, 'rb') as f:
PermissionError: [Errno 13] Permission denied: '/mnt/d/OneDrive/.849C9593-D756-4E56-8D6E-42412F2A707B'

wxy1343 added a commit that referenced this issue Oct 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant