ws-arch2: archive/binhex, archive/macbinary (I / II / III), archive/applesingle (AppleSingle / AppleDouble v1 / v2), read + write, over the new containers/MacFile (fork convention, Mac OS Roman names, 1904 dates)
This commit is contained in:
1 parent
fe44292f58
commit
3243291877
13 files changed
+1152
-4
No files matched your search
@@ -32,6 +32,13 @@ end
|
||||
for _, f in files do
|
||||
a:add(f[1], f[2], { mtime = 1700000000, mode = 0x1A4 })
|
||||
end
|
||||
if opts.mac then
|
||||
-- a Mac file: type / creator / flags on the data fork, a resource fork entry
|
||||
local e = a._byName["hello.txt"]
|
||||
e.macType, e.macCreator, e.finderFlags = "TEXT", "ttxt", 0x0100
|
||||
a:add("hello.txt.rsrc", content(700, 3), { mtime = 1700000000 })
|
||||
a._byName["hello.txt.rsrc"].fork = "resource"
|
||||
end
|
||||
local out, err = a:write(opts)
|
||||
if not out then
|
||||
error(tostring(err))
|
||||
|
||||
Reference in new issue
Block a user