File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1191,10 +1191,10 @@ public Path getTrashRoot(Path path) {
1191
1191
}
1192
1192
1193
1193
Path targetFsUserHome = res .targetFileSystem .getHomeDirectory ();
1194
- if (targetFSTrashRootPath .startsWith (mountTargetPath ) && !(
1195
- mountTargetPath .equals (ROOT_PATH .toString ())
1196
- && !res .resolvedPath .equals (ROOT_PATH .toString ()) && (
1197
- targetFsUserHome != null && targetFSTrashRootPath .startsWith (
1194
+ if (targetFSTrashRootPath .startsWith (mountTargetPath ) &&
1195
+ !( mountTargetPath .equals (ROOT_PATH .toString ()) &&
1196
+ !res .resolvedPath .equals (ROOT_PATH .toString ()) &&
1197
+ ( targetFsUserHome != null && targetFSTrashRootPath .startsWith (
1198
1198
targetFsUserHome .toUri ().getPath ())))) {
1199
1199
String relativeTrashRoot =
1200
1200
targetFSTrashRootPath .substring (mountTargetPath .length ());
You can’t perform that action at this time.
0 commit comments