summaryrefslogtreecommitdiffstats
path: root/idrop-web/grails-app/controllers/org/irods/mydrop/controller/FileController.groovy
diff options
context:
space:
mode:
Diffstat (limited to 'idrop-web/grails-app/controllers/org/irods/mydrop/controller/FileController.groovy')
-rw-r--r--idrop-web/grails-app/controllers/org/irods/mydrop/controller/FileController.groovy8
1 files changed, 5 insertions, 3 deletions
diff --git a/idrop-web/grails-app/controllers/org/irods/mydrop/controller/FileController.groovy b/idrop-web/grails-app/controllers/org/irods/mydrop/controller/FileController.groovy
index cd77106..dae667d 100644
--- a/idrop-web/grails-app/controllers/org/irods/mydrop/controller/FileController.groovy
+++ b/idrop-web/grails-app/controllers/org/irods/mydrop/controller/FileController.groovy
@@ -229,14 +229,16 @@ class FileController {
filesToDelete.each{
log.info "filesToDelete: ${it}"
IRODSFile toDelete = irodsFileFactory.instanceIRODSFile(it)
- toDelete.delete()
+ toDelete.deleteWithForceOption()
+ log.info("...delete successful")
}
} else {
log.debug "not array"
- log.info "deleting: ${filesToDelete}"
+ log.info "deleting: ${filesToDelete}..."
IRODSFile toDelete = irodsFileFactory.instanceIRODSFile(filesToDelete)
- toDelete.delete()
+ toDelete.deleteWithForceOption()
+ log.info("...delete successful")
}
render "OK"