@@ -342,7 +342,7 @@ See also: [`set-creation-time`](#babashka.fs/set-creation-time), [`last-modified
342342Function.
343343
344344Returns current working directory path.
345- <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1511- L1514 " >Source</a ></sub ></p >
345+ <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1514-L1517 " >Source</a ></sub ></p >
346346
347347## <a name =" babashka.fs/delete " >` delete ` </a >
348348``` clojure
@@ -464,7 +464,7 @@ assumed to be a username, then naively expanded to `(home username)`.
464464e.g., ` ~someuser/foo ` -> ` /home/someuser/foo `
465465
466466See also: [ ` home ` ] ( #babashka.fs/home )
467- <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1484-L1504 " >Source</a ></sub ></p >
467+ <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1487-L1507 " >Source</a ></sub ></p >
468468
469469## <a name =" babashka.fs/extension " >` extension ` </a >
470470``` clojure
@@ -590,11 +590,13 @@ File is extracted to `target-dir` with `gz-file` [`file-name`](#babashka.fs/file
590590Creates ` target-dir ` dir(s) if necessary.
591591The ` gz-file ` is not deleted.
592592
593+ Returns the extracted file.
594+
593595Options:
594596* ` :replace-existing ` - when ` true ` overwrites existing file
595597
596598See also: [ ` gzip ` ] ( #babashka.fs/gzip )
597- <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1372-L1401 " >Source</a ></sub ></p >
599+ <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1372-L1404 " >Source</a ></sub ></p >
598600
599601## <a name =" babashka.fs/gzip " >` gzip ` </a >
600602``` clojure
@@ -608,14 +610,14 @@ Gzips `source-file` to `:dir`/`:out-file`.
608610Does not store the ` source-file ` name in the ` .gz ` file.
609611The ` source-file ` is not deleted.
610612
613+ Returns the created gzip file.
614+
611615Options:
612616* ` :dir ` (s) - created if necessary. If not specified, defaults to ` source-file ` dir.
613617* ` :out-file ` - if not specified, defaults to ` source-file ` [ ` file-name ` ] ( #babashka.fs/file-name ) with ` .gz ` extension.
614618
615- Returns the created gzip file.
616-
617619See also: [ ` gunzip ` ] ( #babashka.fs/gunzip )
618- <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1403-L1433 " >Source</a ></sub ></p >
620+ <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1406-L1436 " >Source</a ></sub ></p >
619621
620622## <a name =" babashka.fs/hidden? " >` hidden? ` </a >
621623``` clojure
@@ -641,7 +643,7 @@ Returns home dir path.
641643With no arguments, returns the current value of the ` user.home `
642644system property. If a ` user ` is passed, returns that user's home
643645directory as found in the parent of home with no args.
644- <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1474-L1482 " >Source</a ></sub ></p >
646+ <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1477-L1485 " >Source</a ></sub ></p >
645647
646648## <a name =" babashka.fs/instant->file-time " >` instant->file-time ` </a >
647649``` clojure
@@ -1153,7 +1155,7 @@ or [FileTime](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/
11531155Function.
11541156
11551157Returns ` path ` as string with Unix-style file separators (` / ` ).
1156- <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1603-L1609 " >Source</a ></sub ></p >
1158+ <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1606-L1612 " >Source</a ></sub ></p >
11571159
11581160## <a name =" babashka.fs/unzip " >` unzip ` </a >
11591161``` clojure
@@ -1190,7 +1192,7 @@ Returns the new contents.
11901192
11911193Options:
11921194* ` :charset ` - charset of file, default to "utf-8"
1193- <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1584-L1601 " >Source</a ></sub ></p >
1195+ <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1587-L1604 " >Source</a ></sub ></p >
11941196
11951197## <a name =" babashka.fs/walk-file-tree " >` walk-file-tree ` </a >
11961198``` clojure
@@ -1253,7 +1255,7 @@ Returns a vector of every path to `program` found in ([`exec-paths`](#babashka.f
12531255Function.
12541256
12551257Returns ` true ` if OS is Windows.
1256- <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1506- L1509 " >Source</a ></sub ></p >
1258+ <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1509-L1512 " >Source</a ></sub ></p >
12571259
12581260## <a name =" babashka.fs/with-temp-dir " >` with-temp-dir ` </a >
12591261``` clojure
@@ -1280,7 +1282,7 @@ Example:
12801282;; d no longer exists here
12811283```
12821284
1283- <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1437-L1466 " >Source</a ></sub ></p >
1285+ <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1440-L1469 " >Source</a ></sub ></p >
12841286
12851287## <a name =" babashka.fs/writable? " >` writable? ` </a >
12861288``` clojure
@@ -1313,7 +1315,7 @@ Examples:
13131315(fs/write-bytes f (.getBytes (String. " foo" ))) ; ; overwrites + truncates or creates new file
13141316(fs/write-bytes f (.getBytes (String. " foo" )) {:append true })
13151317```
1316- <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1537-L1561 " >Source</a ></sub ></p >
1318+ <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1540-L1564 " >Source</a ></sub ></p >
13171319
13181320## <a name =" babashka.fs/write-lines " >` write-lines ` </a >
13191321``` clojure
@@ -1333,7 +1335,7 @@ Open options:
13331335* ` :write ` - (default ` true ` )
13341336* ` :append ` - (default ` false ` )
13351337* or any ` java.nio.file.StandardOption ` .
1336- <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1563-L1582 " >Source</a ></sub ></p >
1338+ <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1566-L1585 " >Source</a ></sub ></p >
13371339
13381340## <a name =" babashka.fs/xdg-cache-home " >` xdg-cache-home ` </a >
13391341``` clojure
@@ -1346,7 +1348,7 @@ Returns path to user-specific non-essential data as described in the [XDG Base D
13461348
13471349Uses env-var ` XDG_CACHE_HOME ` (if set and representing an absolute path), else ` (fs/path (fs/home) ".cache") ` .
13481350When provided, appends ` app ` to the returned path.
1349- <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1641-L1649 " >Source</a ></sub ></p >
1351+ <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1644-L1652 " >Source</a ></sub ></p >
13501352
13511353## <a name =" babashka.fs/xdg-config-home " >` xdg-config-home ` </a >
13521354``` clojure
@@ -1359,7 +1361,7 @@ Returns path to user-specific configuration files as described in the [XDG Base
13591361
13601362Uses env-var ` XDG_CONFIG_HOME ` (if set and representing an absolute path), else ` (fs/path (fs/home) ".config") ` .
13611363When provided, appends ` app ` to the returned path.
1362- <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1631-L1639 " >Source</a ></sub ></p >
1364+ <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1634-L1642 " >Source</a ></sub ></p >
13631365
13641366## <a name =" babashka.fs/xdg-data-home " >` xdg-data-home ` </a >
13651367``` clojure
@@ -1372,7 +1374,7 @@ Returns path to user-specific data files as described in the [XDG Base Directory
13721374
13731375Uses env-var ` XDG_DATA_HOME ` (if set and representing an absolute path), else ` (fs/path (fs/home) ".local" "share") ` .
13741376When provided, appends ` app ` to the returned path.
1375- <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1651-L1659 " >Source</a ></sub ></p >
1377+ <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1654-L1662 " >Source</a ></sub ></p >
13761378
13771379## <a name =" babashka.fs/xdg-state-home " >` xdg-state-home ` </a >
13781380``` clojure
@@ -1385,7 +1387,7 @@ Returns path to user-specific state files as described in the [XDG Base Director
13851387
13861388Uses env-var ` XDG_STATE_HOME ` (if set and representing an absolute path), else ` (fs/path (fs/home) ".local" "state") ` .
13871389When provided, appends ` app ` to the returned path.
1388- <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1661-L1669 " >Source</a ></sub ></p >
1390+ <p ><sub ><a href =" https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L1664-L1672 " >Source</a ></sub ></p >
13891391
13901392## <a name =" babashka.fs/zip " >` zip ` </a >
13911393``` clojure
0 commit comments