Revert "add hidden folder check"

This reverts commit 69c0a976e3b4f65d9b5380d3f57c48d481ccbb1f.
Revert "Revert "add hidden folder check""

This reverts commit ec8a53cdcf7fcd73ff47f4c78ec3f4c54f3ff4e5.
update ut