I'm running a test suite where the modification time of a file is taken into account. Currently I have to add a Thread.sleep in order for these times to be different. It seems it is possible to set the modification time of a file using the BasicFileAttributeView It would be nice to be able to set the modification time during upload. (Maybe the creation time and last accessed time as well, but I don't know if they are supported by the underlying filesystem.)
I'm running a test suite where the modification time of a file is taken into account. Currently I have to add a
Thread.sleep
in order for these times to be different. It seems it is possible to set the modification time of a file using the BasicFileAttributeView It would be nice to be able to set the modification time during upload. (Maybe the creation time and last accessed time as well, but I don't know if they are supported by the underlying filesystem.)