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
Aekold Helbrass
Posted via mailing list.





PostPosted: Fri Oct 30, 2009 5:59 am    Post subject: FileChangeListener and listen to changes on Physical File System Reply with quote

On Thu, Oct 29, 2009 at 8:44 PM, Gonzalo Tirapegui Medina
<address-removed> wrote:
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?

You may try this
https://jna.dev.java.net/nonav/javadoc/com/sun/jna/examples/FileMonitor.html
JNA guys are listing NetBeans in "Projects Using JNA".
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