mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 11:48:02 -04:00
Merge remote-tracking branch 'upstream/master-MC1.8.9' into master-MC1.9.4
This commit is contained in:
commit
524f8c4d56
@ -282,6 +282,7 @@ function filesystem.path(path)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function filesystem.name(path)
|
function filesystem.name(path)
|
||||||
|
checkArg(1, path, "string")
|
||||||
local parts = segments(path)
|
local parts = segments(path)
|
||||||
return parts[#parts]
|
return parts[#parts]
|
||||||
end
|
end
|
||||||
@ -436,7 +437,7 @@ function filesystem.rename(oldPath, newPath)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function filesystem.copy(fromPath, toPath)
|
function filesystem.copy(fromPath, toPath)
|
||||||
local data
|
local data = false
|
||||||
local input, reason = filesystem.open(fromPath, "rb")
|
local input, reason = filesystem.open(fromPath, "rb")
|
||||||
if input then
|
if input then
|
||||||
local output, reason = filesystem.open(toPath, "wb")
|
local output, reason = filesystem.open(toPath, "wb")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user