mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 02:39:48 -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
|
||||
|
||||
function filesystem.name(path)
|
||||
checkArg(1, path, "string")
|
||||
local parts = segments(path)
|
||||
return parts[#parts]
|
||||
end
|
||||
@ -436,7 +437,7 @@ function filesystem.rename(oldPath, newPath)
|
||||
end
|
||||
|
||||
function filesystem.copy(fromPath, toPath)
|
||||
local data
|
||||
local data = false
|
||||
local input, reason = filesystem.open(fromPath, "rb")
|
||||
if input then
|
||||
local output, reason = filesystem.open(toPath, "wb")
|
||||
|
Loading…
x
Reference in New Issue
Block a user