mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-03 09:42:38 +01:00
aefaef
This commit is contained in:
parent
d818e874dd
commit
9b18c6b187
@ -378,7 +378,7 @@
|
||||
name="lib/compressor.lua",
|
||||
url="IgorTimofeev/OpenComputers/master/lib/compressor.lua",
|
||||
type="Library",
|
||||
version=1.01,
|
||||
version=1.02,
|
||||
},
|
||||
{
|
||||
name="lib/xmlParser.lua",
|
||||
|
||||
BIN
Applications/.DS_Store
vendored
BIN
Applications/.DS_Store
vendored
Binary file not shown.
@ -21,6 +21,7 @@ local function byteArrayToNumber(byteArray)
|
||||
end
|
||||
return number
|
||||
end
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
local function writePath(compressedFile, path)
|
||||
@ -66,8 +67,8 @@ end
|
||||
|
||||
local function doCompressionRecursively(fileList, compressedFile, currentPackPath)
|
||||
for file = 1, #fileList do
|
||||
local filename = fs.name(fileList[file])
|
||||
local filePackPath = currentPackPath .. fs.name(fileList[file])
|
||||
local filename = (fs.name(fileList[file]) or "")
|
||||
local filePackPath = currentPackPath .. filename
|
||||
|
||||
if filename ~= "mnt" and filename ~= ".DS_Store" then
|
||||
-- print("Локальный путь архива: " .. filePackPath)
|
||||
@ -182,6 +183,10 @@ function compressor.unpack(pathToCompressedFile, pathWhereToUnpack)
|
||||
compressedFile:close()
|
||||
end
|
||||
|
||||
function compressor.packAll(pathToCompressedFile)
|
||||
compressor.pack(pathToCompressedFile, getFileList("/"))
|
||||
end
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
-- compressor.pack("/test1.pkg", "/MineOS/System/OS/", "/etc/")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user