commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne (JIRA)" <>
Subject [jira] Commented: (IO-86) Add DirectoryWalker based on FileFinder
Date Wed, 11 Oct 2006 15:38:24 GMT
    [ ] 
Stephen Colebourne commented on IO-86:

Why a boolean? Firstly, because it reduces the jar file size slightly (each class is an overhead),
but secondly because I wanted the handlers to be able to ignore the cancellation request (which
they can't do with an exception because its too late by that point).

What you're suggesting now could almost argue for no cancellation behaviour at all - what
does CancelledOperation(Exception) give over throwing an IOException directly?

I do agree that the code I checked in doesn't support the internal model of cancellation.
This could be fixed by adding a setCancelled() method and a boolean flag. Maybe we are worrying
too much about the sync cost of volatile?

> Add DirectoryWalker based on FileFinder
> ---------------------------------------
>                 Key: IO-86
>                 URL:
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Utilities
>    Affects Versions: 1.2
>            Reporter: Niall Pemberton
>             Fix For: 1.3
>         Attachments:,, io-DirectoryWalker-cancellation-2.patch,
> I'd like to propose adding a "FileFinder" back into Commons IO. This is a simplified
version of what was recently moved out of Commons IO into the "finder" component currently
in the sandbox.
> I believe this is a simpler, more generic implementation than the finder component and
therefore would be considered suitable for inclusion in Commons IO. Although simpler it could
be used as the basis for achieving the finder component's aims - namely to emulate the unix
find command.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message