FileShout - A file ...
 
Notifications
Clear all

FileShout - A file event listening utility

5 Posts
3 Users
0 Reactions
600 Views
asimon
(@asimon)
New Member
Joined: 11 years ago
Posts: 3
Topic starter  

I was referred to this forum by my professor at the college I am currently attending. I have been working on a project that monitors file events from a given specified directory. I wrote the project in C# on Windows but right now I am re-writing the application to run on Java SO it can run on any OS that someone can install the Java VM on. Doing this was driven by my professors input to want the application to run on the Mac.

I do not know what the rules are about posting links so in order to get to my program go into google and type "alexsimon resume foliotek". It should be the first link. The name of the project is Fileshout.

Download and play around with the program and feel free to modify it OR better yet give me some ideas on what to implement in the actual 1.0.0 build in java. My professor was talking about adding a feature that you can take snapshots of a selected directory and then monitor the changes to the directory and its subdirectories. I am kind of stumped on how to do this without doing a copy operating (my professor was talking about rsync… which… i will google later today).

Thanks for reading.


   
Quote
(@ashishsingh)
Eminent Member
Joined: 11 years ago
Posts: 29
 

Download and play around with the program and feel free to modify it OR better yet give me some ideas on what to implement in the actual 1.0.0 build in java. My professor was talking about adding a feature that you can take snapshots of a selected directory and then monitor the changes to the directory and its subdirectories. I am kind of stumped on how to do this without doing a copy operating (my professor was talking about rsync… which… i will google later today).

Thanks for reading.

Hi Dear,

I tried finding the project that has been developed by you. But I guess there is some technical issue as on visiting the page as mentioned by you, a message that is displayed is "Viewing period ended."

Let me know how to proceed further.

Thanks and Regards


   
ReplyQuote
asimon
(@asimon)
New Member
Joined: 11 years ago
Posts: 3
Topic starter  

Oh lol. That was the right page but it just expired today. I just paid for it so it should be viewable again. Sorry for that. (it was live earlier then it went offline… strange timing.. oops .)


   
ReplyQuote
(@Anonymous 6593)
Guest
Joined: 17 years ago
Posts: 1158
 

My professor was talking about adding a feature that you can take snapshots of a selected directory and then monitor the changes to the directory and its subdirectories. I am kind of stumped on how to do this without doing a copy

.

With Java, once you know the language reasonably well, you must know the library. In this case java.nio.file, which implements the Watch Service API, which is what you're interested in..

There's a tutorial here http//docs.oracle.com/javase/tutorial/essential/io/notification.html, and it looks as if there's sample code as well.

Good luck!


   
ReplyQuote
asimon
(@asimon)
New Member
Joined: 11 years ago
Posts: 3
Topic starter  

Yes. I figured out how to implement the filesystem watcher in java and at some point I will upload the java port onto my portfolio. I am right now having some technical problems with my laptop so I don't know if I will get around to fixing up the project to upload it. First, the path is set to my linux home directory so I need to make it so the user can change the directory. I also am going to make it to where you can turn off the logging.
Will post updates on this thread as I get more work done it. D


   
ReplyQuote
Share: