applait / finderjs

Finder and file picker library for Firefox OS
http://finder.js.org
MIT License
14 stars 7 forks source link

`hidden: false` should hide hidden folders as well #2

Closed kaustavdm closed 9 years ago

kaustavdm commented 9 years ago

As of now, passing hidden: false in constructor options hide only hidden files, i.e. files whose names begin with a dot. But this includes files from trash directories and other hidden directories that are intended for caching, e.g. /sdcard1/.TRASH-1000/.

So, the checkhidden method should also include folder names and check if any portion of the path begins with a dot.

kaustavdm commented 9 years ago

@kumarrishav Thanks for this! :+1: