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

gsync crash when creating directory in unknown charset #96

Open
tloudev opened this issue Dec 4, 2015 · 0 comments
Open

gsync crash when creating directory in unknown charset #96

tloudev opened this issue Dec 4, 2015 · 0 comments

Comments

@tloudev
Copy link

tloudev commented Dec 4, 2015

that charset is 'unknown for me', when I change to that directory in linux, I can still read it's content. but gsync does this:

ftp/customers/hello@karimartin.cz/Kopie - fotogalerie/JAN��EK/ DEBUG: 'Exception': File "/usr/local/lib/python2.7/dist-packages/libgsync/drive/**init**.py", line 575, in mkdir 'parents': [{ 'id': parentId }] File "/usr/local/lib/python2.7/dist-packages/googleapiclient/discovery.py", line 736, in method actual_path_params, actual_query_params, body_value) File "/usr/local/lib/python2.7/dist-packages/googleapiclient/model.py", line 149, in request body_value = self.serialize(body_value) File "/usr/local/lib/python2.7/dist-packages/googleapiclient/model.py", line 258, in serialize return json.dumps(body_value) File "/usr/lib/python2.7/json/**init**.py", line 231, in dumps return _default_encoder.encode(obj) File "/usr/lib/python2.7/json/encoder.py", line 200, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/lib/python2.7/json/encoder.py", line 263, in iterencode return _iterencode(o, 0)

DEBUG: IOError('Failed to create directory: drive://backup/ftp/customers/hello@karimartin.cz/Kopie - fotogalerie/JAN\xc1\xc8EK',): File "/usr/local/lib/python2.7/dist-packages/libgsync/crawler.py", line 150, in run
self._walk(srcpath, self._walkCallback, self._dev)
File "/usr/local/lib/python2.7/dist-packages/libgsync/crawler.py", line 113, in _walk
self._sync(d)
File "/usr/local/lib/python2.7/dist-packages/libgsync/sync/init.py", line 31, in call
self._sync(path)
File "/usr/local/lib/python2.7/dist-packages/libgsync/sync/init.py", line 188, in _sync
self.dst.create(dstPath, srcFile)
File "/usr/local/lib/python2.7/dist-packages/libgsync/sync/file/init.py", line 313, in create
self.createDir(path, srcObj)
File "/usr/local/lib/python2.7/dist-packages/libgsync/sync/file/__init
.py", line 223, in createDir
self._createDir(path, src)
File "/usr/local/lib/python2.7/dist-packages/libgsync/sync/file/remote/__init
.py", line 77, in _createDir
drive.mkdir(path)
File "/usr/local/lib/python2.7/dist-packages/libgsync/drive/init.py", line 588, in mkdir
raise IOError("Failed to create directory: %s" % path)

Error: IOError('Failed to create directory: drive://backup/ftp/customers/hello@karimartin.cz/Kopie - fotogalerie/JAN\xc1\xc8EK',)
sent 0 bytes received 0 bytes 0.00 bytes/sec

root@remus:~# gsync --version
0.1.14

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