public class UploadRmFileTransfer extends UploadFileTransfer
UploadFileTransfer
which
deletes all files in a transfer set if the upload is
successful. This is similar to the MoveFileTransfer
but should be considered less safe since a remote copy
is involved.AbstractFileTransfer.Transfers
log
Constructor and Description |
---|
UploadRmFileTransfer() |
Modifier and Type | Method and Description |
---|---|
void |
afterTransfer(int errors,
java.util.List<java.lang.String> srcFiles)
Deletes all uploaded files if there were no errors.
|
transfer
cleanupUpload, createTransfer, deleteTransferredFiles, finish, isWindows, printLine, start
public void afterTransfer(int errors, java.util.List<java.lang.String> srcFiles) throws CleanupFailure
afterTransfer
in interface FileTransfer
afterTransfer
in class UploadFileTransfer
CleanupFailure
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.