Merge remote-tracking branch 'upstream/master-MC1.8.9' into master-MC1.9.4

This commit is contained in:
payonel 2017-06-22 19:04:10 -07:00
commit 524f8c4d56

View File

@ -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")