Creates path before writing file to virtual FS