in folder there is many files, that shouldnt be ignored, but there is also lot of subdirectories that should be ignored, how to do it?