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

Feature request: hide hidden files #140

Closed
sganis opened this issue Aug 6, 2018 · 7 comments
Closed

Feature request: hide hidden files #140

sganis opened this issue Aug 6, 2018 · 7 comments

Comments

@sganis
Copy link

sganis commented Aug 6, 2018

Is there a feature to hide hidden files? I am using sshfs cygwin to mount a remote linux storage, and I need to hide files that start with a dot. If not, any suggestion of what function to modify would be helpful. Thanks.

@Nikratio
Copy link
Contributor

Thanks for the idea! Unfortunately, there is no such thing as a "hidden file" as far as FUSE is concerned. Therefore, sshfs can't provide anything like it.

@sganis
Copy link
Author

sganis commented Sep 16, 2018

How can windows explorer hide those files?
Wouldnt be good to have a —show-hidden=no option in sshfs ?
Windows users are not familiar with linux hidden files, windows does not have full support either, it cannot rename them from explorer, for example.

@Nikratio
Copy link
Contributor

Interesting idea. That would lead to other weird behavior though, like not being able to delete an apparently empty directory (because it contains files that sshfs hides).

@sganis
Copy link
Author

sganis commented Sep 16, 2018 via email

@Nikratio
Copy link
Contributor

That's actually exactly the problem :-). If you execute rm -r, then the rm commands asks the filesystem for a list of files, deletes each of them, and then attempts to delete the directory. Windows Explorer does the same thing. This will fail if the file system hides certain files, because it cannot know whether it's asked for a list of files to be displayed to the user, or a list of files to be removed by a recursive removal operation.

@sganis
Copy link
Author

sganis commented Sep 16, 2018

The filesystem could know about hidden files, only the sshfs readdir operacion could filter them, what do you think?

@Nikratio
Copy link
Contributor

Sorry, that doesn't make sense. SSHFS is the filesystem, and if readdir() filters out the files, then rm -r will fail because it can't see the files.

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

2 participants