(archive archive root)
(archive archive root inputs)
puts files into an archive
(archive "hello/stuff.jar" "src")
puts files into an archive (archive "hello/stuff.jar" "src")
(extract archive)
(extract archive output)
(extract archive output entries)
extracts all file from an archive
(extract "hello/stuff.jar")
(extract "hello/stuff.jar" "output")
(extract "hello/stuff.jar" "output" ["world.java"])
extracts all file from an archive (extract "hello/stuff.jar") (extract "hello/stuff.jar" "output") (extract "hello/stuff.jar" "output" ["world.java"])
(has? archive entry)
checks if the archive has a particular entry
(has? "hello/stuff.jar" "world.java") => false
checks if the archive has a particular entry (has? "hello/stuff.jar" "world.java") => false
(insert archive entry input)
inserts a file to an entry within the archive
(insert "hello/stuff.jar" "world.java" "path/to/world.java")
inserts a file to an entry within the archive (insert "hello/stuff.jar" "world.java" "path/to/world.java")
(list archive)
lists all the entries in the archive
(list "hello/stuff.jar") ;;=> [#path:"/"]
lists all the entries in the archive (list "hello/stuff.jar") ;;=> [#path:"/"]
(open archive)
either opens an existing archive or creates one if it doesn't exist
(open "hello/stuff.jar") ;;=> creates a zip-file
either opens an existing archive or creates one if it doesn't exist (open "hello/stuff.jar") ;;=> creates a zip-file
(path archive entry)
returns the url of the archive
(-> (open "hello/stuff.jar") (path "world.java") (str)) => "world.java"
returns the url of the archive (-> (open "hello/stuff.jar") (path "world.java") (str)) => "world.java"
(remove archive entry)
removes an entry from the archive
(remove "hello/stuff.jar" "world.java")
removes an entry from the archive (remove "hello/stuff.jar" "world.java")
(stream archive entry)
creates a stream for an entry wthin the archive
(stream "hello/stuff.jar" "world.java")
creates a stream for an entry wthin the archive (stream "hello/stuff.jar" "world.java")
(url archive)
returns the url of the archive
(url (open "hello/stuff.jar")) => "/Users/chris/Development/chit/lucidity/hello/stuff.jar"
returns the url of the archive (url (open "hello/stuff.jar")) => "/Users/chris/Development/chit/lucidity/hello/stuff.jar"
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close