get file type from directory childs