Closed AutismPatient closed 2 years ago
I need to implement the exclusion of files inside the hidden directory
I'm sorry but I don't understand. You would need to describe the problem with more context and also I hope this is not a automatic translation issue :)
Sorry, no hidden directory related parameter Settings are provided at this time
Hidden directory files will not be culled
Do you want to ignore hidden directories with findAsync
?
By hidden, do you mean names starting with .
?
你想忽略隐藏目录
findAsync
吗?隐藏,您是指以 开头的名称
.
吗?
Yes, I wish I could add an option Whether to skip the hidden directory
On Windows there is no easy way to say if file is hidden in node.js, because Windows supports hidden files differently than unix-family operating systems. Here is some library that does this with extra native code: https://www.npmjs.com/package/is-hidden-file
On unix systems I believe this is as easy as check if the file name starts with .
(dot).
Thank you for your answer
I just want to filter out the hidden files during the retrieval phase
Ah, ok, now it finally makes sense and it's fixable in the code.
Freshly published version 5.1.0 outpust also absolutePath
in filter function.
comparison