Using the Directory node, is there any way to exclude hidden files?
juggledad opened this issue · 1 comments
juggledad commented
Is there any way to exclude hidden files? I want to exclude hidden files and it would be useful to have an option tto allow you to exclude them.
DeanCording commented
The fs-ops node is a wrapper around many of the functions in Node's file system library, which
in turn is a wrapper around the standard POSIX filesystem functions.
Under Linux there is not an attribute for a hidden file but a convention that files with names
starting with a '.' are considered hidden. This is handled by the application by filtering the list of
returned filenames.
Under Windows there is a specific file attribute for hidden files but it is not supported in the
POSIX library. The only way to identify a hidden file in Windows is to try to open it using the 'w'
flag and checking if an EPERM error is returned.
On Wednesday, 5 June 2019 06:22:46 AEST juggledad wrote:
Is there any way to exclude hidden files? I want to exclude hidden files and it would be useful to
have an option tto allow you to exclude them.
—You are receiving this because you are subscribed to this thread.Reply to this email directly,
view it on GitHub[1], or mute the thread[2].[3]
…--------
[1] #8?
email_source=notifications&email_token=AAB5KIXGG3LUP57G5HAZY5LPY3FJLA5CNFSM4HTBUS
JKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GXT3YEQ
[2] https://github.com/notifications/unsubscribe-auth/
AAB5KIX3HOTHBOARHNAPDRDPY3FJLANCNFSM4HTBUSJA
[3] https://github.com/notifications/beacon/
AAB5KIQ674U2IPC4ZVMPGCLPY3FJLA5CNFSM4HTBUSJKYY3PNVWWK3TUL52HS4DFUVEXG43VM
WVGG33NNVSW45C7NFSM4GXT3YEQ.gif