[ 
https://issues.apache.org/jira/browse/IO-596?focusedWorklogId=477927&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-477927
 ]

ASF GitHub Bot logged work on IO-596:
-------------------------------------

                Author: ASF GitHub Bot
            Created on: 02/Sep/20 14:58
            Start Date: 02/Sep/20 14:58
    Worklog Time Spent: 10m 
      Work Description: garydgregory edited a comment on pull request #72:
URL: https://github.com/apache/commons-io/pull/72#issuecomment-685786776


   Hi All,
   
   For the basic operations, please use version 2.7's `IOExceptionList` and 
`PathUtils` methods:
   
   - `delete(Path)`
   - `delete(Path, DeleteOption...)`
   - `deleteDirectory(Path)`
   - `deleteDirectory(Path, DeleteOption...)`
   - `deleteFile(Path)`
   - `deleteFile(Path, DeleteOption...)`
   
   WRT:
   - maxRetries;
   - waitBetweenRetriesMillis;
   - backoffMultiplier;
   - retryOverridingFileAttributes;
   - overrideAllAttributes;
   
   Perhaps these attributes could encapsulated in a new `CopyStrategy 
implements DeleteOption, CopyOption` class (where deleting is a kind of copying 
[to the bit bucket]) which could then be used by both _delete_ and _copy_ 
methods in `PathUtils`?
   
   WDYT?
   


----------------------------------------------------------------
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]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 477927)
    Time Spent: 2.5h  (was: 2h 20m)

> Add DeleteFiles utility class for more robust file deletion strategies
> ----------------------------------------------------------------------
>
>                 Key: IO-596
>                 URL: https://issues.apache.org/jira/browse/IO-596
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Utilities
>            Reporter: Matt Sicker
>            Assignee: Matt Sicker
>            Priority: Major
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> Particularly for Windows environments where deleting files can turn into a 
> hassle due to the inability to remove open files, I would like to provide a 
> file deletion utility class that has the ability to retry deletions with 
> exponential backoff, force override file attributes to allow for deletion, 
> and deleting as much as possible while accumulating errors.
> This functionality was originally inspired by and based on functionality in 
> Jenkins hudson.Util class.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to