Search code examples
air

Watch files and folders in AIR


I am creating a file sync application in AIR. I want to create the handler which can watch the changes in the specified folder location like Dropbox application. Whenever any file or folder gets added,removed, modified, renamed than air application should raise the event with the event name (file/folder added, renamed etc.)

Please help about the process of folder and file watcher using Aodbe AIR.


Solution

  • You can use the FileMonitor classes (find it here) to monitor the files you want to watch for changes. Have been using that for an old project, works like a charm :-)