Raynes / fs

File system utilities for Clojure.
453 stars 119 forks source link

add optional arg to base-name to trim-ext, like unix basename #20

Closed miner closed 12 years ago

miner commented 12 years ago

I often need to make a new file with the same root, but a different extension. This patch overlaps somewhat with the new name function. However, trim-ext can also be used to trim only a particular extension. The functionality is similar to the unix basename.

Raynes commented 12 years ago

You're on a roll.