File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes I/O and Streams and the fly likes Keep track of file name changes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Reply Bookmark "Keep track of file name changes" Watch "Keep track of file name changes" New topic
Author

Keep track of file name changes

Marco Zanini
Ranch Hand

Joined: Oct 31, 2011
Posts: 39
Hi to all, my programs watches a directory for changes using features provided in Java 7. I am able to keep track of a Directory changing it's name but I'm not able to do it on a File.

This is the code:


Do you think I simply need to register every single file in addition to every directory?
 
 
subject: Keep track of file name changes
 
Threads others viewed
ServerSocketChannel.accept() seems to create a random port to send data to?
Lucene beginner question
files are not delete
File transfer using FTP
nio and http request
Two Laptop Bag