gerard / ext4fuse

EXT4 implementation for FUSE
GNU General Public License v2.0
913 stars 110 forks source link

Cannot handle hidden folder/files #56

Open jeffli678 opened 5 years ago

jeffli678 commented 5 years ago

First, Thanks for your great work! It can properly read my ext4 partition for most of the time. However, when I try to copy my ssh keys to the Mac, I found ext4fuse currently cannot handle hidden folders/files.

You can try with the ~/.ssh folder in Ubuntu. I mounted the ext4 partition under /Volumes/ubuntu, so the full path on Mac is /Volumes/ubuntu/home/jeff/.ssh, where jeff is my Ubuntu user name. When I run "ls" in this folder, I expect to see files like "config", "id_rsa", etc. However, I see all the files under / of the ext4 partition. In other words, ext4fuse cannot display content within a folder that starts with "." (on Linux, these folders are hidden when displayed in GUI).

Gavitron commented 5 years ago

I experienced a similar issue - i can list a directory with hidden files, (ex: ls -al ; ls -l .DS_Store) but if I read the file, cat .DS_Store then ext4fuse crashes, and the mount becomes invalid.

i discovered this by trying to cp -r a directory off the SD card onto the local filesystem. Every time the .DS_Store file was read, all subsequent file reads failed until I unmounted and re-mounted the ext4 filesystem.