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 ti

Re: Setting created timestamp of files using BasicFileAttributeView

2016-03-05 Thread Michael Hall
> On Mar 5, 2016, at 7:15 AM, Robert Krüger wrote: > > 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.

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 > BasicFileAttributeView is n

Re: Setting created timestamp of files using BasicFileAttributeView

2016-03-06 Thread Michael Hall
> On Mar 6, 2016, at 5:28 AM, Robert Krüger wrote: > > > > On Sat, Mar 5, 2016 at 3:23 PM, Michael Hall > wrote: >> On Mar 5, 2016, at 7:15 AM, Robert Krüger > > wrote: >> >> > > This…, > https://stackoverflow.com/questions/9198184/sett

Re: Setting created timestamp of files using BasicFileAttributeView

2016-03-06 Thread Robert Krüger
sorry, I replied to Scott's mail not using "reply-all" (this ml-setting sucks bigtime), so you only git half of the information. On Sun, Mar 6, 2016 at 1:26 PM, Michael Hall wrote: > On Mar 6, 2016, at 5:28 AM, Robert Krüger wrote: > > > > On Sat, Mar 5, 2016 at 3:23 PM, Michael Hall wrote: >

Re: Setting created timestamp of files using BasicFileAttributeView

2016-03-06 Thread Michael Hall
> On Mar 6, 2016, at 7:01 AM, Robert Krüger wrote: > When I set creation date using a cocoa call > (NSFileManager:setAttributes:ofItemAtPath:error:) mapped to java, behaviour > is as expected and creation date is changed. I filed a jdk bug report (Review > ID: JI-9031479). OK, should be a lon