(->link-options)(->link-options {:keys [nofollow-links]})Converts a hash-map of options into an array of LinkOption objects.
| key | description |
|---|---|
:nofollow-links | Adds LinkOption/NOFOLLOW_LINKS to the array. Default: false |
Converts a hash-map of options into an array of LinkOption objects. | key | description | | -----------------|-------------| | `:nofollow-links`| Adds LinkOption/NOFOLLOW_LINKS to the array. Default: `false`|
(as-file path & paths)Convert a string to a File object.
(as-file "/Users/codespace/test.txt")
(as-file "/Users/codespace/" "test.txt")
Convert a string to a File object. ```clojure (as-file "/Users/codespace/test.txt") (as-file "/Users/codespace/" "test.txt") ```
(as-path path & paths)Join path and convert it to a FileSystem Path object.
;; Output: #object[sun.nio.fs.UnixPath 0x3379968a "/Users/codespace/test.txt"]
(as-path "/Users/codespace/" "test.txt")
Join path and convert it to a FileSystem Path object. ```clojure ;; Output: #object[sun.nio.fs.UnixPath 0x3379968a "/Users/codespace/test.txt"] (as-path "/Users/codespace/" "test.txt") ```
(coerce-path-to-string path)Convert a path to a string, the path may be a Path object or a string object.
(coerce-path-to-string (as-path "/Users/codespace/" "test.txt"))
(coerce-path-to-string "/Users/codespace/test.txt")
Convert a path to a string, the path may be a Path object or a string object. ```clojure (coerce-path-to-string (as-path "/Users/codespace/" "test.txt")) (coerce-path-to-string "/Users/codespace/test.txt") ```
(connect url access-key secret-key)(creation-time path)(creation-time path {:keys [nofollow-links]})Get the creation time of a file or directory.
Get the creation time of a file or directory.
A map of file extensions to mime-types.
A map of file extensions to mime-types.
(delete path)(directory? path)(directory? path {:keys [nofollow-links]})Return true if path is a directory.
Return true if `path` is a directory.
(download-object conn bucket name localpath)Download object to a local path.
Download object to a local path.
(exists-object? conn bucket-name object)Whether the object exists in the bucket
Whether the object exists in the bucket
(ext-mime-type filename)(ext-mime-type filename mime-types)Get the mimetype from the filename extension. Takes an optional map of extensions to mimetypes that overrides values in the default-mime-types map.
Get the mimetype from the filename extension. Takes an optional map of extensions to mimetypes that overrides values in the default-mime-types map.
(get-attribute path attribute)(get-attribute path attribute {:keys [nofollow-links]})(get-download-url conn bucket name)(get-download-url conn bucket name timeout)returns a temporary download url for this object with 7day expiration
returns a temporary download url for this object with 7day expiration
(get-name abspath)(get-object conn {:keys [bucket name]})(get-object conn bucket name)Takes connection and a map of [bucket name] keys as returned by (put-object) or explicit arguments returns java.io.BufferedReader. Use clojure.java.io/copy to stream the bucket data files, or HTTP responses
Takes connection and a map of [bucket name] keys as returned by (put-object) or explicit arguments returns java.io.BufferedReader. Use clojure.java.io/copy to stream the bucket data files, or HTTP responses
(get-object-meta conn {:keys [bucket name]})(get-object-meta conn bucket name)Returns object metadata as clojure hash-map
Returns object metadata as clojure hash-map
(get-upload-url conn bucket name)returns presigned and named upload url for direct upload from the client.
returns presigned and named upload url for direct upload from the client.
(init)(join-paths path & paths)Joins one or more path segments into a single String path object.
Joins one or more path segments into a single String path object.
(last-modified-time path)(last-modified-time path {:keys [nofollow-links]})Get the last modified time of a file or directory.
Get the last modified time of a file or directory.
(list-objects conn bucket)(list-objects conn bucket filter)(list-objects conn bucket filter recursive)(make-bucket conn name)Creates a bucket with a name. Does nothing if one exists. Returns nil
Creates a bucket with a name. Does nothing if one exists. Returns nil
(NOW)(put-object conn bucket file-name)(put-object conn bucket upload-name source-file-name)Uploads a file object to the bucket. Returns a map of bucket name and file name
Uploads a file object to the bucket. Returns a map of bucket name and file name
(regular-file? path)(regular-file? path {:keys [nofollow-links]})Return true if path is a regular file (not a soft link).
Return true if `path` is a regular file (not a soft link).
(remove-bucket! conn bucket-name)removes the bucket form the storage
removes the bucket form the storage
(remove-object! conn bucket object)(size path)(swallow-exceptions & body)(UUID)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |