From issues-return-91961-archive-asf-public=cust-asf.ponee.io@commons.apache.org Wed Sep 2 14:59:04 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-ec2-va.apache.org (mxout1-ec2-va.apache.org [3.227.148.255]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id 6AB52180686 for ; Wed, 2 Sep 2020 16:59:04 +0200 (CEST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with SMTP id A4DA5454C9 for ; Wed, 2 Sep 2020 14:59:03 +0000 (UTC) Received: (qmail 93266 invoked by uid 500); 2 Sep 2020 14:59:03 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 93105 invoked by uid 99); 2 Sep 2020 14:59:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Sep 2020 14:59:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 0450645AB2 for ; Wed, 2 Sep 2020 14:59:02 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 6A80D7809A4 for ; Wed, 2 Sep 2020 14:59:00 +0000 (UTC) Date: Wed, 2 Sep 2020 14:59:00 +0000 (UTC) From: "ASF GitHub Bot (Jira)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Work logged] (IO-596) Add DeleteFiles utility class for more robust file deletion strategies MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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: users@infra.apache.org 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)