Skip to content

Commit

Permalink
add function comment for supportBirthTimeOnLinux
Browse files Browse the repository at this point in the history
  • Loading branch information
sendaoYan committed Jun 16, 2024
1 parent 42fec73 commit 2c002f5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ private static void setCreationTime(Path file, FileTime time) throws IOException
view.setTimes(null, null, time);
}

/**
* read the output of linux command `stat -c "%w" file`, if the output is "-",
* then the file system doesn't support birth time
*/
public static boolean supportBirthTimeOnLinux(Path file) {
try {
String filePath = file.toAbsolutePath().toString();
Expand Down

0 comments on commit 2c002f5

Please sign in to comment.