Liking cljdoc? Tell your friends :D

datoteka.storages

A datoteka abstraction layer.

A datoteka abstraction layer.
raw docstring

clear!clj

(clear! storage)

Clear all contents of the storage.

Clear all contents of the storage.
sourceraw docstring

deleteclj

(delete storage path)

Delete a file from the storage.

Delete a file from the storage.
sourceraw docstring

exists?clj

(exists? storage path)

Check if a relative path exists in the storage.

Check if a  relative `path` exists in the storage.
sourceraw docstring

lookupclj

(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.
sourceraw docstring

public-urlclj

(public-url storage path)
source

saveclj

(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.
sourceraw docstring

storage?clj

(storage? v)

Return true if v implements IStorage protocol

Return `true` if `v` implements IStorage protocol
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close