KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to to write a script in either Ruby or Python that will look at the contents of a directory and monitor for 1. Any new files 2. Any saves to existing files. I'm not bothered about what is different in the files - just that they have been saved or are new. The script then returns the name of the file (with its full path) perhaps once every 2 seconds or something. I want to scan files within folders to so mainfile.txt images/image1.jpg images/icons/icon1.png All these files / folders need to be montitored. I eventually want to FTP the files that have changed / been added but I'm happy to settle for a solution to the first part of the problem as I know how to ftp (but by all means include this if you want to!) I am using OSX 10.5.8
Tags (comma-separated)
Save Edits
Cancel