Răsfoiți Sursa

fixed missing isDirectory

ncannasse 11 ani în urmă
părinte
comite
a53e2dabd2
1 a modificat fișierele cu 9 adăugiri și 0 ștergeri
  1. 9 0
      hxd/res/LocalFileSystem.hx

+ 9 - 0
hxd/res/LocalFileSystem.hx

@@ -140,6 +140,15 @@ private class LocalEntry extends FileEntry {
 		#end
 	}
 	
+	override function get_isDirectory() {
+		#if air3
+		return file.isDirectory;
+		#else
+		throw "TODO";
+		return false;
+		#end
+	}
+	
 	override function load( ?onReady : Void -> Void ) : Void {
 		#if air3
 		if( onReady != null ) haxe.Timer.delay(onReady, 1);