浏览代码

Fix: [Filesystem.mod] Let MaxIO delete directories if initialized

Ronny Otto 3 月之前
父节点
当前提交
910dd73e33
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      filesystem.mod/filesystem.bmx

+ 5 - 1
filesystem.mod/filesystem.bmx

@@ -510,7 +510,11 @@ Function DeleteDir:Int( path:String,recurse:Int=False )
 		Forever
 		CloseDir dir
 	EndIf
-	rmdir_ path
+	If MaxIO.ioInitialized Then
+		MaxIO.DeletePath(path)
+	Else
+		rmdir_ path
+	EndIf
 	If FileType( path )=0 Return True
 End Function