diff --git a/src/main/resources/assets/opencomputers/loot/openos/lib/filesystem.lua b/src/main/resources/assets/opencomputers/loot/openos/lib/filesystem.lua index 8f7c553d0..2e4ab54a0 100644 --- a/src/main/resources/assets/opencomputers/loot/openos/lib/filesystem.lua +++ b/src/main/resources/assets/opencomputers/loot/openos/lib/filesystem.lua @@ -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")