commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [commons-io] garydgregory edited a comment on pull request #72: [IO-596] Add DeleteFiles utility class
Date Wed, 02 Sep 2020 14:58:07 GMT

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`
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:
users@infra.apache.org



Mime
View raw message