Scala I/O: Path and Extension

150 views
Skip to first unread message

Daniel Sobral

unread,
Aug 28, 2012, 8:05:32 PM8/28/12
to scala-i...@googlegroups.com
I see "name" and I see "extension" on Path, but I don't see any way to
get the name *without* the extension. I'd expect to be able to get the
base directory, the base name, name plus extension, and directory plus
name plus extension. It seems there's a couple missing?

--
Daniel C. Sobral

I travel to the future all the time.

Jesse Eichar

unread,
Sep 10, 2012, 3:19:53 AM9/10/12
to scala-i...@googlegroups.com

James Harman

unread,
May 22, 2013, 12:23:17 PM5/22/13
to scala-i...@googlegroups.com
Path.simpleName seems to work for this.

James
Reply all
Reply to author
Forward
0 new messages