public class FileUtil extends Object
Constructor and Description |
---|
FileUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
simplifyPath(String pathname)
This is taken from guava Files.
|
public static String simplifyPath(String pathname)
These heuristics do not always match the behavior of the filesystem. In
particular, consider the path a/../b
, which simplifyPath
will change to b
. If a
is a symlink to x
, a/../b
may refer to a sibling of x
, rather than the sibling of
a
referred to by b
.
Copyright © 2018 Zanata Project. All rights reserved.