[
https://issues.apache.org/jira/browse/OODT-450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luca Cinquini updated OODT-450:
-------------------------------
Description:
Upon successful ingestion, the crawler action
org.apache.oodt.cas.crawl.action.DeleteFile will correctly delete a product
file, but will fail to delete a product directory if the directory is not
empty. It is suggested that we check for this condition and invoke:
FileUtils.deleteDirectory(fileToDelete)
to recursively delete the directory and all its content.
was:
Upon successful, the crawler action org.apache.oodt.cas.crawl.action.DeleteFile
will correctly delete a product file, but will fail to delete a product
directory if the directory is not empty. It is suggested that we check for this
condition and invoke:
FileUtils.deleteDirectory(fileToDelete)
to recursively delete the directory and all its content.
> Deletion of directory upon product ingestion
> --------------------------------------------
>
> Key: OODT-450
> URL: https://issues.apache.org/jira/browse/OODT-450
> Project: OODT
> Issue Type: Improvement
> Components: crawler
> Affects Versions: 0.3
> Reporter: Luca Cinquini
> Fix For: 0.4
>
>
> Upon successful ingestion, the crawler action
> org.apache.oodt.cas.crawl.action.DeleteFile will correctly delete a product
> file, but will fail to delete a product directory if the directory is not
> empty. It is suggested that we check for this condition and invoke:
> FileUtils.deleteDirectory(fileToDelete)
> to recursively delete the directory and all its content.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira