Skip to content

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

Notifications You must be signed in to change notification settings

luskwater/clj-file-utils

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
exists?

As A Dependency

leiningen

[clj-file-utils "0.1.3"]

maven

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

Usage

user=> (use 'clj-file-utils.core)  
nil
user=> (exist "foo.txt")
false
user=> (touch "foo.txt")
nil
user=> (exists? "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 [email protected] Updates by Nate Murray [email protected]

Further updates by Ron Lusk [email protected]

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%