|
@@ -638,7 +638,7 @@ public class RawLocalFileSystem extends FileSystem {
|
|
FileUtil.makeShellPath(pathToFile(p), true)));
|
|
FileUtil.makeShellPath(pathToFile(p), true)));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Sets the {@link Path}'s last modified time <em>only</em> to the given
|
|
* Sets the {@link Path}'s last modified time <em>only</em> to the given
|
|
* valid time.
|
|
* valid time.
|
|
@@ -661,12 +661,4 @@ public class RawLocalFileSystem extends FileSystem {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- private static String execCommand(File f, String... cmd) throws IOException {
|
|
|
|
- String[] args = new String[cmd.length + 1];
|
|
|
|
- System.arraycopy(cmd, 0, args, 0, cmd.length);
|
|
|
|
- args[cmd.length] = FileUtil.makeShellPath(f, true);
|
|
|
|
- String output = Shell.execCommand(args);
|
|
|
|
- return output;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
}
|
|
}
|