Explorar o código

make sure to create tmp dir

ncannasse %!s(int64=8) %!d(string=hai) anos
pai
achega
48d677ec40
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      hxd/fs/LocalFileSystem.hx

+ 3 - 0
hxd/fs/LocalFileSystem.hx

@@ -392,6 +392,9 @@ class LocalFileSystem implements FileSystem {
 		root = new LocalEntry(this, "root", null, baseDir);
 		#end
 		tmpDir = baseDir + ".tmp/";
+		#if sys
+		try sys.FileSystem.createDirectory(tmpDir) catch( e : Dynamic ) {};
+		#end
 	}
 
 	public function getRoot() : FileEntry {