소스 검색

make sure to create tmp dir

ncannasse 8 년 전
부모
커밋
48d677ec40
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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 {