(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.
(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?
(overwrite things file-name)
Write the collection to a file, clearing it first
Write the collection to a file, clearing it first
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close