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

Add HideFilesBeginningInDot/NoHideFilesBeginningInDot export option #138

Open
cedricblancher opened this issue Oct 5, 2024 · 1 comment

Comments

@cedricblancher
Copy link

Windows Server 2022 NFSv4 server has an export option called HideFilesBeginningInDot which is enabled by default, and sets the NFSv4 WORD0_HIDDEN attribute to true if the file name starts with a . (DOT).

IMO nfs4j should do the same, so Windows users do not see files by default which are considered HIDDEN by POSIX.

@kofemann
Copy link
Member

kofemann commented Oct 7, 2024

Hi @cedricblancher. HIDDEN is a file attribute and has nothing to do with the file name. Thus, any GETATTR should do reverse mapping to the file name, which is not always possible.
So, I don't see how, based only on a filename, one mimics hidden files.

BTW, POSIX doesn't have a concept of hidden files. It's ls that doesn't show them by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants