commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <>
Subject [jira] [Work logged] (IO-596) Add DeleteFiles utility class for more robust file deletion strategies
Date Wed, 02 Sep 2020 14:59:00 GMT


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:

   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...)`
   - 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`?

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:

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

This message was sent by Atlassian Jira

View raw message