Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Unix-like filesystem manipulation utilities for Clojure, wrapping Apache Commons IO.
tag: 0.1.2

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/clj_file_utils
test/clj_file_utils
.gitignore
README.mkd
TODO
pom.xml
project.clj

README.mkd

clj-file-utils

Unix-like filesystem manipulation utilities for Clojure, wrapping Apache Commons IO.

Implemented Functions

file
size
mv
cp
cp-r
rm
rm-f
rm-r
rm-rf
touch
mkdir-p
chmod

As A Dependency

leiningen

[clj-file-utils "0.1.1"]

maven

<dependency>
  <groupId>clj-file-utils</groupId>
  <artifactId>clj-file-utils</artifactId>
  <version>0.1.1</version>
</dependency>

Usage

user=> (use 'clj-file-utils.core)  
nil
user=> (exist "foo.txt")
false
user=> (touch "foo.txt")
nil
user=> (exist "foo.txt")
true
user=> (rm "foo.txt")
nil
user=> (file "foo.txt")
#<File foo.txt>
user=> (.getParent (file "/path/to/foo.txt"))                         
"/path/to"

Authors

Extracted from http://github.com/mmcgrana/clj-garden by Mark McGranaghan mmcgrana@gmail.com Updates by Nate Murray nate@natemurray.com

Something went wrong with that request. Please try again.