DataCollector, ignore folder and hidden files in collecting, code simplification

...fication