Basic usage question
Kasper Nielsen
kasperni at gmail.com
Thu Jul 29 11:51:13 PDT 2010
Hi,
I've been unable to answer this _very_ basic question.
Considering the following code using the regular File class.
File f = new File("/home/foo");
File fnew = new File(f, "tmp");
How do I do this done using the Path class?
Do I need to resort to using something like this?
Path p=Paths.get("/home/foo");
Path ptmp=Paths.get(p.toString() + p.getFileSystem().getSeparator() +
"tmp")?
Cheers
Kasper
More information about the nio-discuss
mailing list