浏览代码

rename: update FileManager references to FileSystem in OperatingSystemLibrary

Akeit0 7 月之前
父节点
当前提交
e75c81b257
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Lua/Standard/OperatingSystemLibrary.cs

+ 2 - 2
src/Lua/Standard/OperatingSystemLibrary.cs

@@ -143,7 +143,7 @@ public sealed class OperatingSystemLibrary
         var fileName = context.GetArgument<string>(0);
         try
         {
-            context.State.FileManager.Remove(fileName);
+            context.State.FileSystem.Remove(fileName);
             return new(context.Return(true));
         }
         catch (IOException ex)
@@ -158,7 +158,7 @@ public sealed class OperatingSystemLibrary
         var newName = context.GetArgument<string>(1);
         try
         {
-            context.State.FileManager.Rename(oldName, newName);
+            context.State.FileSystem.Rename(oldName, newName);
             return new(context.Return(true));
         }
         catch (IOException ex)