steveloughran commented on a change in pull request #974: HDFS-9913.DispCp
doesn't use Trash with -delete option
URL: https://github.com/apache/hadoop/pull/974#discussion_r302511195
##########
File path:
hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCpOptionSwitch.java
##########
@@ -76,6 +76,14 @@
new Option("delete", false, "Delete from target, " +
"files missing in source. Delete is applicable only with update or
overwrite options")),
+ /**
+ * When -delete option on, files in target that are missing from source
+ * will be delete by default. This allows the files to be
+ * moved to the trash
+ */
+ DELETE_USETRASH(DistCpConstants.CONF_LABEL_DELETE_MISSING_USETRASH,
+ new Option("useTrash", false, "Delete from target to the trash")),
Review comment:
Or "Move deleted files into the user's trash directory in the destination
filesystem"
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]