Arrow_left   Arrow_right
 
  #33

Add delete-file and delete-file-recursively functions to java-utils

    • Status: Fixed
    • Priority: Normal (3)
    • Component: -
    • Permission type: None
    Another one of those bizarre omissions from the JDK. Discussed this with Chouser on IRC, and he thinks it's a good idea.

    I've added it to java-utils, though there are enough file-specific functions now that I think a new file-utils namespace could be spun off.
  • Followers
     
    Ico-users technomancy (Assigned To) 
     
    Attachments
    Fico_general
    1.26 KB Added by technomancy on May 11 11:15 2010 UTC   Details
    Fico_general
    1.33 KB Added by technomancy on May 11 11:15 2010 UTC   Details
    Fico_general
    1.26 KB Added by technomancy on May 11 11:15 2010 UTC   Details
    Associations
     
    No associations
    Activity
     
    User picture

          on Oct 09, 2009 @ 06:38AM UTC * By technomancy

    Attachment 0001-Add-delete-file-and-delete-file-recursively-function.patch added
    file:cjQy7qTi0r3R7MeJe5afGb: Implementation
    User picture

          on Oct 09, 2009 @ 06:38AM UTC * By technomancy

    Attachment 0002-Added-test-for-delete-file.patch added
    User picture

          on Oct 09, 2009 @ 06:38AM UTC * By technomancy

    Attachment 0003-Added-a-test-for-delete-file-recursively.patch added
    User picture

          on Oct 09, 2009 @ 06:40AM UTC * By technomancy

    Status changed from New to Test
    User picture

          on Oct 29, 2009 @ 01:48AM UTC * By Chouser

    Assigned to changed from Chouser to technomancy
    Did you try test-delete-file-recursively on Windows? Looks like it might have issues there. I'll apply the 0001 and 0002 patches, but please take a look at 0003 to see if there's a way to be sure it won't cause false negatives.
    User picture

          on Oct 29, 2009 @ 02:53AM UTC * By technomancy

    (In revision:8eef617aac7b077421d4aa9c84a2df189af6ee17) java-utils: Add delete-file and delete-file-recursively functions

    Also added test for delete-file. Refs #33

    Signed-off-by: Chouser <chouser@n01se.net>

    Branch: master
    User picture

          on Jan 31, 2010 @ 04:33AM UTC * By stuartsierra

    Milestone set to Backlog
    Updating tickets (#1, #2, #3, #4, #6, #20, #23, #25, #30, #31, #33, #34, #35, #37, #38, #52, #55, #58, #59, #60, #61, #62, #63, #64)
    User picture

          on Feb 03, 2010 @ 06:06PM UTC * By stuartsierra

    Status changed from Test to Fixed
    User picture

          on Apr 12, 2010 @ 11:23PM UTC * By stuart.halloway

    Milestone changed from Backlog to Release 1.2
    Updating tickets (#2, #3, #33, #38, #51, #52, #65, #67, #70)
    Time Expenditure
    Loading