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.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.