Check whether a path has hidden directory or whether a file/directory is hidden.http://stackoverflow.com/questions/8905680/nodejs-check-for-hidden-files/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
test this case:
isUnixHiddenPath('../test'); // true
isUnixHiddenPath('./'); // true
It better change to
return (/(\/|^|.)\.[^\/\.]/g).test(path);