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:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
local agcfg = {
|
local agcfg = {
|
||||||
["halyde"] = {
|
["halyde"] = {
|
||||||
["maindir"] = "",
|
["maindir"] = "",
|
||||||
["version"] = "1.12.1",
|
["version"] = "1.12.2",
|
||||||
["description"] = "A universal, customizable and feature-packed operating system for OpenComputers.",
|
["description"] = "A universal, customizable and feature-packed operating system for OpenComputers.",
|
||||||
["directories"] = {
|
["directories"] = {
|
||||||
"halyde/apps",
|
"halyde/apps",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
local loadfile = ...
|
local loadfile = ...
|
||||||
local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile)
|
local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile)
|
||||||
|
|
||||||
_G._OSVERSION = "Halyde 1.12.1"
|
_G._OSVERSION = "Halyde 1.12.2"
|
||||||
_G._OSLOGO = ""
|
_G._OSLOGO = ""
|
||||||
local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil
|
local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil
|
||||||
repeat
|
repeat
|
||||||
|
|||||||
@@ -235,8 +235,7 @@ function filesystem.rename(fromPath, toPath)
|
|||||||
if fromAddress == toAddress then
|
if fromAddress == toAddress then
|
||||||
return component.invoke(fromAddress, "rename", fromAbsPath, toAbsPath)
|
return component.invoke(fromAddress, "rename", fromAbsPath, toAbsPath)
|
||||||
else
|
else
|
||||||
local handle = component.invoke(fromAddress, "open", fromAbsPath, "r")
|
local handle, data, tmpdata = component.invoke(fromAddress, "open", fromAbsPath, "r"), "", nil
|
||||||
local data, tmpdata
|
|
||||||
repeat
|
repeat
|
||||||
tmpdata = component.invoke(fromAddress, "read", handle, math.huge or math.maxinteger)
|
tmpdata = component.invoke(fromAddress, "read", handle, math.huge or math.maxinteger)
|
||||||
data = data .. (tmpdata or "")
|
data = data .. (tmpdata or "")
|
||||||
|
|||||||
Reference in New Issue
Block a user