Skip to content

Commit f89670b

Browse files
committed
Javadoc: better method available when using Java 1.7+
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1468706 13f79535-47bb-0310-9956-ffa450edef68
1 parent 8d52f69 commit f89670b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/java/org/apache/commons/io/FileUtils.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2974,7 +2974,10 @@ public static void moveToDirectory(final File src, final File destDir, final boo
29742974
* <p>
29752975
* <b>Note:</b> the current implementation always returns {@code false} if the system
29762976
* is detected as Windows using {@link FilenameUtils#isSystemWindows()}
2977-
*
2977+
* <p>
2978+
* For code that runs on Java 1.7 or later, use the following method instead:
2979+
* <br>
2980+
* {@code boolean java.nio.file.Files.isSymbolicLink(Path path)}
29782981
* @param file the file to check
29792982
* @return true if the file is a Symbolic Link
29802983
* @throws IOException if an IO error occurs while checking the file

0 commit comments

Comments
 (0)