tynet-lichat/shirakumo - IRC Chatlog
Search
10:08:42
Colleen
Shinmera: i wanted to use depot to create a zip archive in memory. i had to make a few changes to get it working. is that expected or am i doing something wrong?
10:08:42
scymtym
Shinmera: i wanted to use depot to create a zip archive in memory. i had to make a few changes to get it working. is that expected or am i doing something wrong?
10:11:31
Colleen
what i do is (let* ((depot (make-instance 'depot.in-memory:depot)) (zip-file (depot:make-entry depot :id "outer.zip")) (zip (make-instance 'depot.zip:zip-archive :depot entry)) (inner (depot:make-entry zip :id "inner.txt"))) (depot:write-to inner "text") (depot:commit zip))
10:11:31
scymtym
what i do is (let* ((depot (make-instance 'depot.in-memory:depot)) (zip-file (depot:make-entry depot :id "outer.zip")) (zip (make-instance 'depot.zip:zip-archive :depot entry)) (inner (depot:make-entry zip :id "inner.txt"))) (depot:write-to inner "text") (depot:commit zip))
10:12:27
Colleen
this failed initially because ZIP-ARCHIVE didn't have a COMMIT method. adding that method, i had to add stream support to the in-memory transactions
10:12:27
scymtym
this failed initially because ZIP-ARCHIVE didn't have a COMMIT method. adding that method, i had to add stream support to the in-memory transactions
10:14:09
shinmera
Aha. I haven't actually used the in-memory depot, it was more a proof-of-concept kinda thing