Removing wrong file types and unnecessary checks in DirectoryService