Preserve file creation time with Java

前端 未结 2 1272
别跟我提以往
别跟我提以往 2021-01-24 14:36

I wrote a little copy tool in java to copy .mp3 files on my USB stick. When new files are copied, some file attributes are preserved, but not the creation time.

To copy

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-24 15:15

    Take a look at: http://docs.oracle.com/javase/tutorial/essential/io/fileAttr.html#basic

    It's possible to get and set files attributes like creation time.

提交回复
热议问题