mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
FileUtil.toCanonicalPath can now expand symlinks when it's required to build the valid path that contains /../
* typos in JavaDoc fixed
This commit is contained in:
@@ -647,7 +647,7 @@ public class FileUtil extends FileUtilRt {
|
||||
* Please note that this method is symlink-unfriendly (i.e. result of "/path/to/link/../next" most probably will differ from
|
||||
* what {@link java.io.File#getCanonicalPath()} will return) - so use with care.<br>
|
||||
* <br>
|
||||
* If the path may contain synlinks, use use {@link FileUtil#toCanonicalPath(String, boolean)}
|
||||
* If the path may contain symlinks, use {@link FileUtil#toCanonicalPath(String, boolean)} instead.
|
||||
*/
|
||||
@Contract("null -> null")
|
||||
public static String toCanonicalPath(@Nullable String path) {
|
||||
|
||||
Reference in New Issue
Block a user