Java 7 nio FileAttributes windows -
how can file mytempdir = files.createtempdir(path path, string prefix, fileattribute)
work in windows.
i'm using java 7. on linux can pass posixfilepermissions.asfileattributes 3rd parameter.
what equivalent fileattributes windows.
i think method expects fileattribute object. there empty fileattribute can pass in?
if took @ api files.createtempdirectory(path, string, fileattribute<?>...)
, see fileattribute<?>...
parameter optional:
attrs - optional list of file attributes set atomically when creating directory
and since method implemented using varargs, valid omit parameter entirely:
files.createtempdirectory(paths.get("."), "foo");
Comments
Post a Comment