LiteLDev / LegacyScriptEngine

A plugin engine for running LLSE plugins on LeviLamina
https://lse.liteldev.com/
GNU General Public License v3.0
43 stars 8 forks source link

[Bug]: File.rename(from,to)重命名文件后文件消失(被删除?) #147

Closed Atrium4641 closed 2 months ago

Atrium4641 commented 2 months ago

Describe the bug

image

重命名指定文件 / 文件夹 File.rename(from,to)

参数: from : String 文件 / 文件夹的旧名字

to : String 新名字

返回值:是否复制成功 返回值类型:Boolean

正常情况是应该正常重命名

比如重命名名为config.json为config.json.bak,但是config.json直接被删除了

To Reproduce

image

正常情况是应该正常重命名

Expected behavior

image

正常情况是应该正常重命名

Screenshots

image

Platform

Win10

BDS Version

1.21.1

LeviLamina Version

0.13.3

LegacyScriptEngine Version

0.8.1

Additional context

image

ShrBox commented 2 months ago

无法复现