Files related functionality.
Files related functionality.
(dir->ids dir)
Attempt to detect the license(s) in a directory. dir may be a String or a java.io.File, both of which must refer to a directory.
Attempt to detect the license(s) in a directory. dir may be a String or a java.io.File, both of which must refer to a directory.
(file->ids f)
(file->ids f fname)
Attempts to determine the SPDX license identifier(s) (a set) from the given file (an InputStream or something that can have an io/input-stream opened on it). If an InputStream is provided, the associated filename MUST also be provided as the second parameter.
Attempts to determine the SPDX license identifier(s) (a set) from the given file (an InputStream or something that can have an io/input-stream opened on it). If an InputStream is provided, the associated filename MUST also be provided as the second parameter.
(probable-license-file? f)
Returns true if the given file-like thing (String, File, ZipEntry) is a probable license file, false otherwise.
Returns true if the given file-like thing (String, File, ZipEntry) is a probable license file, false otherwise.
(probable-license-files dir)
Returns all probable license files in the given directory, recursively, as a set of java.io.File objects. dir may be a String or a java.io.File, both of which must refer to a directory.
Returns all probable license files in the given directory, recursively, as a set of java.io.File objects. dir may be a String or a java.io.File, both of which must refer to a directory.
(zip->ids zip)
Attempt to detect the license(s) in a ZIP file. zip may be a String or a java.io.File, both of which must refer to a ZIP-format compressed file.
Attempt to detect the license(s) in a ZIP file. zip may be a String or a java.io.File, both of which must refer to a ZIP-format compressed file.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close