| View previous topic :: View next topic |
| Author |
Message |
Aekold Helbrass Posted via mailing list.
|
Posted: Fri Oct 30, 2009 5:59 am Post subject: FileChangeListener and listen to changes on Physical File System |
|
|
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 |
|
 |
|
|
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
|
|
|
|