Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aec2b15
commit b450e67
Showing
5 changed files
with
40 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
BOOT_VERSION=2.8.2 | ||
BOOT_CLOJURE_VERSION=1.10.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
(ns degree9.boot-io.filesystem | ||
(:require [clojure.java.io :as io]) | ||
(:import (org.apache.commons.io FileUtils))) | ||
|
||
;; Helper Functions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(defn exists? [item] | ||
(.exists item)) | ||
|
||
(defn file? [file] | ||
(.isFile file)) | ||
|
||
(defn directory? [dir] | ||
(.isDirectory dir)) | ||
|
||
(defn copy-file [source target] | ||
(FileUtils/copyFile source target)) | ||
|
||
(defn copy-dir [source target] | ||
(FileUtils/copyDirectory source target)) | ||
|
||
(defn to-dir [source target] | ||
(FileUtils/copyToDirectory source target)) | ||
|
||
(defn mk-dir [dir] | ||
(FileUtils/forceMkdir dir)) | ||
|
||
(defn mk-parent [file] | ||
(FileUtils/forceMkdirParent file)) | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#Sun Dec 10 23:12:00 MST 2017 | ||
VERSION=1.3.0 | ||
VERSION=1.4.0 |