Appending to a Path Java us -
is there easy way append path created this:
final path path = files.createtempdirectory(...);
suppose creates temp dir in /tmp/xyx_123/. want path create folder under /tmp/xyz_123/ called foo
path.createdirectory("foo"); or path.appenddirectory("foo");
is there easy way this?
you can this:
path path = files.createtempdirectory("xyx_123"); file fpath = path.tofile(); file addeddir = new file(fpath, "foo"); addeddir.mkdir();
Comments
Post a Comment