handle .ds_store and .class files