Fixed creating files/folders in sub directories.