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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -