modify to create new directory with non-extention file name