diff --git shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java index 212091a..28a18f6 100644 --- shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java +++ shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java @@ -77,6 +77,19 @@ public class ProxyFileSystem extends FilterFileSystem { } /** + * + * @param p + * @return + * @throws IOException + */ + public Path resolvePath(final Path p) throws IOException { + // Return the fully-qualified path of path f resolving the path + // through any symlinks or mount point + checkPath(p); + return getFileStatus(p).getPath(); + } + + /** * Create a proxy file system for fs. * * @param fs FileSystem to create proxy for @@ -124,7 +137,7 @@ public class ProxyFileSystem extends FilterFileSystem { @Override - protected void checkPath(Path path) { + protected void checkPath(final Path path) { super.checkPath(swizzleParamPath(path)); }