folders are created when file is writing