Liking cljdoc? Tell your friends :D

ol.dirs

Cross-platform directory lookup for Clojure, ClojureScript on Node, and ClojureDart.

The public API returns strings or vectors of strings and never creates directories.

  • arity 0 returns the base directory
  • arity 1 appends an application name
  • arity 2 appends qualifier, organization, and application using platform rules

See config-home, data-home, state-home, and home-dir.

Cross-platform directory lookup for Clojure, ClojureScript on Node, and ClojureDart.

The public API returns strings or vectors of strings and never creates directories.

- arity 0 returns the base directory
- arity 1 appends an application name
- arity 2 appends qualifier, organization, and application using platform rules

See [[config-home]], [[data-home]], [[state-home]], and [[home-dir]].
raw docstring

audio-dirclj/s

(audio-dir)

Returns the user's audio or music directory, or nil when unresolved.

Returns the user's audio or music directory, or `nil` when unresolved.
sourceraw docstring

cache-homeclj/s

(cache-home)
(cache-home application)
(cache-home qualifier organization application)

Returns the writable user cache directory.

Returns the writable user cache directory.
sourceraw docstring

config-dirclj/s

(config-dir)
(config-dir application)
(config-dir qualifier organization application)

Alias of config-home.

Alias of [[config-home]].
sourceraw docstring

config-dirsclj/s

(config-dirs)
(config-dirs application)
(config-dirs qualifier organization application)

Returns the shared configuration search roots as a vector of strings.

Returns the shared configuration search roots as a vector of strings.
sourceraw docstring

config-homeclj/s

(config-home)
(config-home application)
(config-home qualifier organization application)

Returns the writable user configuration directory.

Returns the writable user configuration directory.
sourceraw docstring

data-dirsclj/s

(data-dirs)
(data-dirs application)
(data-dirs qualifier organization application)

Returns the shared data search roots as a vector of strings.

Returns the shared data search roots as a vector of strings.
sourceraw docstring

data-homeclj/s

(data-home)
(data-home application)
(data-home qualifier organization application)

Returns the writable user data directory.

Returns the writable user data directory.
sourceraw docstring

desktop-dirclj/s

(desktop-dir)

Returns the user's desktop directory, or nil when unresolved.

Returns the user's desktop directory, or `nil` when unresolved.
sourceraw docstring

document-dirclj/s

(document-dir)

Returns the user's documents directory, or nil when unresolved.

Returns the user's documents directory, or `nil` when unresolved.
sourceraw docstring

download-dirclj/s

(download-dir)

Returns the user's downloads directory, or nil when unresolved.

Returns the user's downloads directory, or `nil` when unresolved.
sourceraw docstring

executable-dirclj/s

(executable-dir)
(executable-dir application)
(executable-dir qualifier organization application)

Returns the user executable directory, or nil when unsupported.

Returns the user executable directory, or `nil` when unsupported.
sourceraw docstring

font-dirclj/s

(font-dir)

Returns the user's font directory, or nil when unsupported.

Returns the user's font directory, or `nil` when unsupported.
sourceraw docstring

home-dirclj/s

(home-dir)

Returns the user's home directory.

Returns the user's home directory.
sourceraw docstring

picture-dirclj/s

(picture-dir)

Returns the user's pictures directory, or nil when unresolved.

Returns the user's pictures directory, or `nil` when unresolved.
sourceraw docstring

preference-dirclj/s

(preference-dir)
(preference-dir application)
(preference-dir qualifier organization application)

Returns the preference directory.

Returns the preference directory.
sourceraw docstring

public-dirclj/s

(public-dir)

Returns the user's public sharing directory, or nil when unresolved.

Returns the user's public sharing directory, or `nil` when unresolved.
sourceraw docstring

runtime-dirclj/s

(runtime-dir)
(runtime-dir application)
(runtime-dir qualifier organization application)

Returns the runtime directory, or nil on platforms without one.

Returns the runtime directory, or `nil` on platforms without one.
sourceraw docstring

state-dirclj/s

(state-dir)
(state-dir application)
(state-dir qualifier organization application)

Alias of state-home.

Alias of [[state-home]].
sourceraw docstring

state-homeclj/s

(state-home)
(state-home application)
(state-home qualifier organization application)

Returns the writable user state directory.

Returns the writable user state directory.
sourceraw docstring

template-dirclj/s

(template-dir)

Returns the user's templates directory, or nil when unsupported or unresolved.

Returns the user's templates directory, or `nil` when unsupported or unresolved.
sourceraw docstring

video-dirclj/s

(video-dir)

Returns the user's videos directory, or nil when unresolved.

Returns the user's videos directory, or `nil` when unresolved.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close