diff --git shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java index 218236f..e871142 100644 --- shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java +++ shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java @@ -72,6 +72,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 @@ -119,7 +132,7 @@ public class ProxyFileSystem extends FilterFileSystem { @Override - protected void checkPath(Path path) { + protected void checkPath(final Path path) { super.checkPath(swizzleParamPath(path)); }