Liking cljdoc? Tell your friends :D

image-lib.file-helper


file-exists?clj

(file-exists? path)
source

(loosely-related-file-exists? path)

given a pathname to a file, checks if any variant of the file exists (loosely-related-file exists? /home/me/picture/abc_version_2.jpg will return true if any file exists in /home/me/pictures that matches the start of the last section of the pathname ie: abc.jpg abc.NEF, abc-version_2.NEF etc.

given a pathname to a file, checks if any variant of the file exists
(loosely-related-file exists? /home/me/picture/abc_version_2.jpg
will return true if any file exists in /home/me/pictures that matches the
start of the last section of the pathname
ie: abc.jpg abc.NEF, abc-version_2.NEF etc.
sourceraw docstring

missing-filesclj

(missing-files db image-collection root-path find-function)

Searches the directory given by root-path and returns a list of any images not found there but present in the image db. find-function is a function that when given a file path returns true or false. Try image-lib.core/file-exists?

Searches the directory given by root-path and returns a list of any images not found there but present in the image db. find-function is a function that when given a file path returns true or false. Try image-lib.core/file-exists? 
sourceraw docstring

overwriteclj

(overwrite things file-name)

Write the collection to a file, clearing it first

Write the collection to a file, clearing it first
sourceraw docstring

(related-file-exists? path)
source

writeclj

(write things file-name)

Append the collection 'things' to file 'file-name' one per line

Append the collection 'things' to file 'file-name' one per line
sourceraw docstring

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

× close