fs /

Filename Size Date modified Message
src
test
45 B
282 B
170 B
1.7 KB
168 B
216 B

fs - File system utilities for Clojure

About

This library tries to provide Clojure code for handling the file system.

It has most of the functionality found in java.io.File influenced by Python's os.path and shutil.

API

abspath
Return absolute path
basename
Return the last part of path
copy
Copy a file
cwd
Return the current working directory
delete
Delete path
directory?
True if path is a directory
dirname
Return directory name
executable?
Check if path is executable
exists?
Check if path exists
file?
True if path is a file
glob
ls like operator
join
Join part to path
listdir
List files under directory
mkdir
Create directory
mtime
File modification time
mkdirs
Create directory tree
normpath
Return normalized (canonical) path
readable?
Check if path is readable
rename
Rename path
separator
Path separator
size
File size
split
Split path to parts
tempdir
Create temporary directory
tempfile
Create temporary file
touch
Change file modification time
walk
Walk over directory structure, calling function on every step
writeable?
Check if path is writable

Authors

Miki Tebeka <miki.tebeka@gmail.com> Justin Kramer <jkkramer@gmail.com> (glob->regexp)

License

Copyright (C) 2010 Miki Tebeka <miki.tebeka@gmail.com>

Distributed under the Eclipse Public License, the same as Clojure.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.