You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2023/12/21 00:39:00 UTC

[jira] [Commented] (IO-439) FileAlterationObserver should check whether inputFile is a directory

    [ https://issues.apache.org/jira/browse/IO-439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17799218#comment-17799218 ] 

Elliotte Rusty Harold commented on IO-439:
------------------------------------------

Why does it have to be a directory? Seems to me if a file is passed in, then it can observe just that one file.

> FileAlterationObserver should check whether inputFile is a directory
> --------------------------------------------------------------------
>
>                 Key: IO-439
>                 URL: https://issues.apache.org/jira/browse/IO-439
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.4
>         Environment: Unix, Ubuntu 64
>            Reporter: Beniamin Kalinowski
>            Priority: Trivial
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> A FileAlterationObserver class receives a String/File object indicating directory and checks whether this file has changed. It doesn't work if file isn't a directory but no warnings/errors are being thrown.
> I think there should be a check if a given input is a directory.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)