GDriveFS icon indicating copy to clipboard operation
GDriveFS copied to clipboard

Input/output error

Open FlorianLudwig opened this issue 7 years ago • 1 comments

I have a similar issue to #161. Since that issue is focused on the OS and architecture I decided to open a separate issue but the underlying problem might be the same.

Running inside vagrant (on 64bit intel):

$ ls /mnt/g
ls: reading directory /mnt/g: Input/output error

It actually seems to be two issues:

  • Multiple files with the same name
  • non ascii names, like ä and/or files with fun characters like spaces, slashes and colons

Changing _GdfsMixin.readdir to do:

filename = utility.make_safe_for_filename(filename)

and to omit duplicated names the problem is resolved.

Those are just workarounds for which I would like to find better solutions.

FlorianLudwig avatar Jan 05 '18 12:01 FlorianLudwig

Apparently the FUSE library is having issues with slashes in the filenames.

As far as duplicate files, they work fine:

-rw-rw-rw- 1 dustin dustin      1000 Jan 28 02:21 'DUPLICATE FILE#'
-rw-rw-rw- 1 dustin dustin      1000 Jan 28 02:21 'DUPLICATE FILE (1)#'

(The "(1)" is added by us to denote a duplicate)

For now, I've unfortunately had to tweak this library to not show filenames that have slashes.

See this issue for more information: https://github.com/fusepy/fusepy/issues/133

dsoprea avatar Jan 28 '19 07:01 dsoprea