FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

FileChangeListener and listen to changes on Physical File System

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Developers
View previous topic :: View next topic  
Author Message
Gonzalo Tirapegui Medina
Posted via mailing list.





PostPosted: Thu Oct 29, 2009 6:44 pm    Post subject: FileChangeListener and listen to changes on Physical File System Reply with quote

Hi !

I'm currently working on a code that make a Memory FileSystem (with
Netbeans API FileSystem) based on a root folder given by parameter .
When i read recursively every subdirectory (or file) under the root
folder , i assign a FileChangeListener class implementation through the
following instruction :

FileUtil.addFileChangeListener(new MyListener(), tempFile);

i understand this function listen to the PHYSICAL files and directory
changes (renaming , deleting , adding a new File) and notify to the
implementation of FileChangeListener to execute the corresponding code ,
but it doesn't work for me .... does anyone knows how to do it?


Regards , Gonzalo Tirapegui
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Developers All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB