nfs4j icon indicating copy to clipboard operation
nfs4j copied to clipboard

Add HideFilesBeginningInDot/NoHideFilesBeginningInDot export option

Open cedricblancher opened this issue 1 year ago • 1 comments

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.

cedricblancher avatar Oct 05 '24 14:10 cedricblancher

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.

kofemann avatar Oct 07 '24 08:10 kofemann