Liking cljdoc? Tell your friends :D

remote-fs.adapter.local


(->link-options)
(->link-options {:keys [nofollow-links]})

Converts a hash-map of options into an array of LinkOption objects.

keydescription
:nofollow-linksAdds 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`|
raw docstring

as-fileclj

(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")
```
raw docstring

as-pathclj

(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")
```
raw docstring

coerce-path-to-stringclj

(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")
```
raw docstring

connectclj

(connect url access-key secret-key)

creation-timeclj

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

default-mime-typesclj

A map of file extensions to mime-types.

A map of file extensions to mime-types.
raw docstring

deleteclj

(delete path)

delete-dirclj

(delete-dir root)

Delete a directory tree.

Delete a directory tree.
raw docstring

directory?clj

(directory? path)
(directory? path {:keys [nofollow-links]})

Return true if path is a directory.

Return true if `path` is a directory.
raw docstring

download-objectclj

(download-object conn bucket name localpath)

Download object to a local path.

Download object to a local path.
raw docstring

exists-object?clj

(exists-object? conn bucket-name object)

Whether the object exists in the bucket

Whether the object exists in the bucket
raw docstring

ext-mime-typeclj

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

get-attributeclj

(get-attribute path attribute)
(get-attribute path attribute {:keys [nofollow-links]})

get-download-urlclj

(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
raw docstring

get-nameclj

(get-name abspath)

get-objectclj

(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
raw docstring

get-object-metaclj

(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
raw docstring

get-upload-urlclj

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

initclj

(init)

join-pathsclj

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

last-modified-timeclj

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

list-bucketsclj

(list-buckets conn)

returns maps

returns maps 
raw docstring

list-objectsclj

(list-objects conn bucket)
(list-objects conn bucket filter)
(list-objects conn bucket filter recursive)

make-bucketclj

(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
raw docstring

NOWclj

(NOW)

put-objectclj

(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
raw docstring

regular-file?clj

(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).
raw docstring

remove-bucket!clj

(remove-bucket! conn bucket-name)

removes the bucket form the storage

removes the bucket form the storage
raw docstring

remove-object!clj

(remove-object! conn bucket object)

sizeclj

(size path)

swallow-exceptionscljmacro

(swallow-exceptions & body)

UUIDclj

(UUID)

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

× close