v1.12.2 - Fixed a bug in the filesystem library where moving a file to a different drive would error out.

This commit is contained in:
TheWahlolly
2025-07-01 12:38:23 +03:00
parent 7485f4ffc6
commit 1cdc88682b
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
local agcfg = {
["halyde"] = {
["maindir"] = "",
["version"] = "1.12.1",
["version"] = "1.12.2",
["description"] = "A universal, customizable and feature-packed operating system for OpenComputers.",
["directories"] = {
"halyde/apps",
+1 -1
View File
@@ -1,7 +1,7 @@
local loadfile = ...
local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile)
_G._OSVERSION = "Halyde 1.12.1"
_G._OSVERSION = "Halyde 1.12.2"
_G._OSLOGO = ""
local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil
repeat
+1 -2
View File
@@ -235,8 +235,7 @@ function filesystem.rename(fromPath, toPath)
if fromAddress == toAddress then
return component.invoke(fromAddress, "rename", fromAbsPath, toAbsPath)
else
local handle = component.invoke(fromAddress, "open", fromAbsPath, "r")
local data, tmpdata
local handle, data, tmpdata = component.invoke(fromAddress, "open", fromAbsPath, "r"), "", nil
repeat
tmpdata = component.invoke(fromAddress, "read", handle, math.huge or math.maxinteger)
data = data .. (tmpdata or "")