Re: Setting created timestamp of files using BasicFileAttributeView

2016-03-05 Thread Scott Palmer
If it can be accomplished by native code then I would file a bug against the JDK as that is clearly where such native code belongs. Scott > On Mar 5, 2016, at 8:15 AM, Robert Krüger wrote: > > Hi, > > could anyone tell me if setting the created time of a file via >

Setting created timestamp of files using BasicFileAttributeView

2016-03-05 Thread Robert Krüger
Hi, could anyone tell me if setting the created time of a file via BasicFileAttributeView is not supported on OSX? I tried using the following code snippet: BasicFileAttributeView attributes = Files.getFileAttributeView(Paths.get(file.getAbsolutePath()), BasicFileAttributeView.class); FileTime