Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Unix-like filesystem manipulation utilities for Clojure, wrapping Apache Commons IO.
Clojure
branch: master

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
project.clj

README.mkd

clj-file-utils

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

Includes a pchmod function which changes file permissions in a portable way.

Implemented Functions

cp
cp-r
directory?
exists?
file
file?
ls
mv
rm
rm-f
rm-r
rm-rf
size
touch
mkdir-p
chmod

Usage

user=> (use 'clj-file-utils.core)
nil
user=> (exists? "foo.txt")
false
user=> (touch "foo.txt")
nil
user=> (exists? "foo.txt")
true
user=> (rm "foo.txt")
nil
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, Min Huang min.huang@alumni.usc.edu

Something went wrong with that request. Please try again.