Skip to main content

file-name

function

babashka.fs/file-name

(file-name [x])
Returns the name of the file or directory via [File#getName](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html#getName()). E.g. (file-name "foo/bar/baz") returns "baz".

No examples yet. Be the first to add one!