A datoteka abstraction layer.
A datoteka abstraction layer.
(clear! storage)
Clear all contents of the storage.
Clear all contents of the storage.
(delete storage path)
Delete a file from the storage.
Delete a file from the storage.
(exists? storage path)
Check if a relative path
exists in the storage.
Check if a relative `path` exists in the storage.
(lookup storage path)
Resolve provided relative path in the storage and return the local filesystem absolute path to it. This method may be not implemented in all datoteka.
Resolve provided relative path in the storage and return the local filesystem absolute path to it. This method may be not implemented in all datoteka.
(save storage path content)
Perists a file or bytes in the storage. This function returns a relative path where file is saved.
The final file path can be different to the one provided to this function and the behavior is totally dependen on the storage implementation.
Perists a file or bytes in the storage. This function returns a relative path where file is saved. The final file path can be different to the one provided to this function and the behavior is totally dependen on the storage implementation.
(storage? v)
Return true
if v
implements IStorage protocol
Return `true` if `v` implements IStorage protocol
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close