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

Sarankumar Baskar commented on IO-439:
--------------------------------------

[~ggregory]  I looked at the current implementation and comments. The class 
Javadocs say directory, but comments suggest observing a single file may be 
intended. Should IO-439 be fixed by rejecting non-directory roots, or by 
documenting/supporting file roots?

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

Reply via email to