createFile will create folder if it not exists