|
@@ -36,7 +36,6 @@ import org.apache.hadoop.fs.shell.PathExceptions.PathIOException;
|
|
|
import org.apache.hadoop.fs.shell.PathExceptions.PathIsDirectoryException;
|
|
|
import org.apache.hadoop.fs.shell.PathExceptions.PathIsNotDirectoryException;
|
|
|
import org.apache.hadoop.fs.shell.PathExceptions.PathNotFoundException;
|
|
|
-import org.apache.hadoop.io.Writable;
|
|
|
|
|
|
/**
|
|
|
* Encapsulates a Path (path), its FileStatus (stat), and its FileSystem (fs).
|
|
@@ -267,6 +266,8 @@ public class PathData implements Comparable<PathData> {
|
|
|
PathData[] items = null;
|
|
|
|
|
|
if (stats == null) {
|
|
|
+ // remove any quoting in the glob pattern
|
|
|
+ pattern = pattern.replaceAll("\\\\(.)", "$1");
|
|
|
// not a glob & file not found, so add the path with a null stat
|
|
|
items = new PathData[]{ new PathData(fs, pattern, null) };
|
|
|
} else {
|