-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathio.randomseed.bankster.util.fs.html
14 lines (14 loc) · 13.5 KB
/
io.randomseed.bankster.util.fs.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html PUBLIC ""
"">
<html><head><meta charset="UTF-8" /><title>io.randomseed.bankster.util.fs documentation</title><link rel="stylesheet" type="text/css" href="css/default.css" /><link rel="stylesheet" type="text/css" href="css/highlight.css" /><script type="text/javascript" src="js/highlight.min.js"></script><script type="text/javascript" src="js/jquery.min.js"></script><script type="text/javascript" src="js/page_effects.js"></script><script>hljs.initHighlightingOnLoad();</script><link rel="stylesheet" type="text/css" href="css/randomseed.css" /></head><body><div id="header"><h2>Generated by <a href="https://github.com/weavejester/codox">Codox</a></h2><h1><a href="index.html"><span class="project-title"><span class="project-name">Bankster</span> <span class="project-version">1.2.16</span></span></a></h1></div><div class="sidebar primary"><h3 class="no-link"><span class="inner">Project</span></h3><ul class="index-link"><li class="depth-1 "><a href="index.html"><div class="inner">Index</div></a></li></ul><h3 class="no-link"><span class="inner">Topics</span></h3><ul><li class="depth-1 "><a href="10_introduction.html"><div class="inner"><span>Introduction</span></div></a></li><li class="depth-1 "><a href="20_data_structures.html"><div class="inner"><span>Data Structures</span></div></a></li></ul><h3 class="no-link"><span class="inner">Namespaces</span></h3><ul><li class="depth-1"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>io</span></div></div></li><li class="depth-2"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>randomseed</span></div></div></li><li class="depth-3"><a href="io.randomseed.bankster.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>bankster</span></div></a></li><li class="depth-4 branch"><a href="io.randomseed.bankster.config.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>config</span></div></a></li><li class="depth-4 branch"><a href="io.randomseed.bankster.currency.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>currency</span></div></a></li><li class="depth-4"><a href="io.randomseed.bankster.money.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>money</span></div></a></li><li class="depth-5 branch"><a href="io.randomseed.bankster.money.inter-ops.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>inter-ops</span></div></a></li><li class="depth-5"><a href="io.randomseed.bankster.money.ops.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>ops</span></div></a></li><li class="depth-4 branch"><a href="io.randomseed.bankster.registry.html"><div class="inner"><span class="tree" style="top: -83px;"><span class="top" style="height: 92px;"></span><span class="bottom"></span></span><span>registry</span></div></a></li><li class="depth-4 branch"><a href="io.randomseed.bankster.scale.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>scale</span></div></a></li><li class="depth-4"><a href="io.randomseed.bankster.util.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>util</span></div></a></li><li class="depth-5 branch current"><a href="io.randomseed.bankster.util.fs.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>fs</span></div></a></li><li class="depth-5 branch"><a href="io.randomseed.bankster.util.importer.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>importer</span></div></a></li><li class="depth-5"><a href="io.randomseed.bankster.util.map.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>map</span></div></a></li></ul></div><div class="sidebar secondary"><h3><a href="#top"><span class="inner">Public Vars</span></a></h3><ul><li class="depth-1"><a href="io.randomseed.bankster.util.fs.html#var-absolute-path.3F"><div class="inner"><span>absolute-path?</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.util.fs.html#var-default-encoding"><div class="inner"><span>default-encoding</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.util.fs.html#var-empty-str-ary"><div class="inner"><span>empty-str-ary</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.util.fs.html#var-get-java-classpath-folders"><div class="inner"><span>get-java-classpath-folders</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.util.fs.html#var-get-resource"><div class="inner"><span>get-resource</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.util.fs.html#var-home-dir-pathname"><div class="inner"><span>home-dir-pathname</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.util.fs.html#var-integer-string.3F"><div class="inner"><span>integer-string?</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.util.fs.html#var-paths-.3Eresource"><div class="inner"><span>paths->resource</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.util.fs.html#var-prop-pathname"><div class="inner"><span>prop-pathname</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.util.fs.html#var-read-csv"><div class="inner"><span>read-csv</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.util.fs.html#var-read-preferences"><div class="inner"><span>read-preferences</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.util.fs.html#var-relative-path.3F"><div class="inner"><span>relative-path?</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.util.fs.html#var-resource-pathname"><div class="inner"><span>resource-pathname</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.util.fs.html#var-rtrim-comments"><div class="inner"><span>rtrim-comments</span></div></a></li><li class="depth-1"><a href="io.randomseed.bankster.util.fs.html#var-user-dir-pathname"><div class="inner"><span>user-dir-pathname</span></div></a></li></ul></div><div class="namespace-docs" id="content"><h1 class="anchor" id="top">io.randomseed.bankster.util.fs</h1><div class="doc"><div class="markdown"></div></div><div class="public anchor" id="var-absolute-path.3F"><h3>absolute-path?</h3><div class="usage"><code>(absolute-path? pathname)</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.2.16/src/io/randomseed/bankster/util/fs.clj#L26">view source</a></div></div><div class="public anchor" id="var-default-encoding"><h3>default-encoding</h3><div class="usage"></div><div class="doc"><div class="markdown"><p>Default encoding for input files.</p>
</div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.2.16/src/io/randomseed/bankster/util/fs.clj#L18">view source</a></div></div><div class="public anchor" id="var-empty-str-ary"><h3>empty-str-ary</h3><div class="usage"></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.2.16/src/io/randomseed/bankster/util/fs.clj#L22">view source</a></div></div><div class="public anchor" id="var-get-java-classpath-folders"><h3>get-java-classpath-folders</h3><div class="usage"><code>(get-java-classpath-folders)</code></div><div class="doc"><div class="markdown"><p>Lists all directories which exist in Java classpath as a sequence of strings. Returns nil if there are none.</p>
</div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.2.16/src/io/randomseed/bankster/util/fs.clj#L34">view source</a></div></div><div class="public anchor" id="var-get-resource"><h3>get-resource</h3><h4 class="added">added in 1.2.4</h4><div class="usage"><code>(get-resource pname)</code></div><div class="doc"><div class="markdown"><p>For the given pathname, returns the resource URL if the path exists. If the path does not exist, returns nil.</p>
</div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.2.16/src/io/randomseed/bankster/util/fs.clj#L85">view source</a></div></div><div class="public anchor" id="var-home-dir-pathname"><h3>home-dir-pathname</h3><div class="usage"><code>(home-dir-pathname)</code><code>(home-dir-pathname & paths)</code></div><div class="doc"><div class="markdown"><p>For the given pathnames creates a pathname expressed as a string by prefixing them with user’s home directory obtained from the Java property <code>user.dir</code> with all parts joined using current path name separator.</p>
</div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.2.16/src/io/randomseed/bankster/util/fs.clj#L57">view source</a></div></div><div class="public anchor" id="var-integer-string.3F"><h3>integer-string?</h3><div class="usage"><code>(integer-string? s)</code></div><div class="doc"><div class="markdown"><p>Returns true if string contains valid integer number.</p>
</div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.2.16/src/io/randomseed/bankster/util/fs.clj#L94">view source</a></div></div><div class="public anchor" id="var-paths-.3Eresource"><h3>paths->resource</h3><h4 class="added">added in 1.0.0</h4><div class="usage"><code>(paths->resource)</code><code>(paths->resource & paths)</code></div><div class="doc"><div class="markdown"><p>For the given pathnames creates a resource object that resides within one of the Java resource directories. The resource must exist for the URI to be returned.</p>
</div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.2.16/src/io/randomseed/bankster/util/fs.clj#L76">view source</a></div></div><div class="public anchor" id="var-prop-pathname"><h3>prop-pathname</h3><div class="usage"><code>(prop-pathname prop)</code><code>(prop-pathname prop paths)</code></div><div class="doc"><div class="markdown"><p>For the given Java property name and optional path names creates a path name expressed as a string by prefixing them with the directory obtained from a property with all parts joined using pathname separator.</p>
</div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.2.16/src/io/randomseed/bankster/util/fs.clj#L40">view source</a></div></div><div class="public anchor" id="var-read-csv"><h3>read-csv</h3><div class="usage"><code>(read-csv resource)</code></div><div class="doc"><div class="markdown"><p>Reads CSV file and returns a lazy sequence of rows.</p>
</div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.2.16/src/io/randomseed/bankster/util/fs.clj#L128">view source</a></div></div><div class="public anchor" id="var-read-preferences"><h3>read-preferences</h3><div class="usage"><code>(read-preferences filename)</code><code>(read-preferences filename opts)</code></div><div class="doc"><div class="markdown"><p>Reads the given preference file. If the path is relative it will be relative to user’s home directory. Optional options map will be passed to EDN reader.</p>
</div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.2.16/src/io/randomseed/bankster/util/fs.clj#L109">view source</a></div></div><div class="public anchor" id="var-relative-path.3F"><h3>relative-path?</h3><div class="usage"></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.2.16/src/io/randomseed/bankster/util/fs.clj#L31">view source</a></div></div><div class="public anchor" id="var-resource-pathname"><h3>resource-pathname</h3><div class="usage"><code>(resource-pathname)</code><code>(resource-pathname & paths)</code></div><div class="doc"><div class="markdown"><p>For the given pathnames creates a pathname expressed as a string that resides within one of the Java resource directories. The path must exist to be returned. WARNING: it will only work for resources on a filesystem, giving you the regular pathname, not URI.</p>
</div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.2.16/src/io/randomseed/bankster/util/fs.clj#L64">view source</a></div></div><div class="public anchor" id="var-rtrim-comments"><h3>rtrim-comments</h3><div class="usage"><code>(rtrim-comments s)</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.2.16/src/io/randomseed/bankster/util/fs.clj#L122">view source</a></div></div><div class="public anchor" id="var-user-dir-pathname"><h3>user-dir-pathname</h3><div class="usage"><code>(user-dir-pathname)</code><code>(user-dir-pathname & paths)</code></div><div class="doc"><div class="markdown"><p>For the given pathnames creates a pathname expressed as a string by prefixing them with user’s directory (typically a project directory) obtained from the Java property <code>user.dir</code> with all parts joined using current path name separator.</p>
</div></div><div class="src-link"><a href="https://github.com/randomseed-io/bankster/blob/1.2.16/src/io/randomseed/bankster/util/fs.clj#L49">view source</a></div></div></div></body></html>