commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Ivankovits (JIRA)" <j...@apache.org>
Subject [jira] Commented: (VFS-78) DefaultFileMonitor does not register changes made on FTP FileObjects
Date Wed, 16 Aug 2006 07:39:14 GMT
    [ http://issues.apache.org/jira/browse/VFS-78?page=comments#action_12428346 ] 
            
Mario Ivankovits commented on VFS-78:
-------------------------------------

The DefaultFileMonitor do not report renamings as renamings but as delete/create events.
This is due to the polling nature of DefaultFileMonitor, it cant know if the file was renamed,
even if you use VFS for this operation. It just compares snapshots of directory listings.

But even if you attach a listener to the FileObject itself a rename will be delivered as delete/create
events. There we might be able to improve the event stuff, but this might not be much of help
for you, no?

Back to your issue, don't you get the "create" event?

> DefaultFileMonitor does not register changes made on FTP FileObjects
> --------------------------------------------------------------------
>
>                 Key: VFS-78
>                 URL: http://issues.apache.org/jira/browse/VFS-78
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: Nightly Builds
>         Environment: WinXP, java  version "1.5.0_06", commons-vfs nightly 20060814
>            Reporter: Patrick Schulz
>
> I don't know if it is a bug or a feature, but DefaultFileMonitor does not report a renaming
of a folder ie.
> It is signaled as a deletion event, but the folder was renamed.
> So it is also not possible to register then any changes made in this subfolder until
you renamed it again.
> The URL was something like ftp://ftp.server/incoming/ and the Monitor was started being
recursive.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message