Monitoring a directory for changes

F

Florian Lindner

Hello,
is there a python lib (preferably in the std lib) to monitor a directory for
changes (adding / deleting files) for Linux 2.6?

Thanks,

Florian
 
R

Reinhold Birkenfeld

Florian said:
Hello,
is there a python lib (preferably in the std lib) to monitor a directory for
changes (adding / deleting files) for Linux 2.6?

There isn't, but if you don't want to use dnotify/inotify, it is trivial to
implement: use a timer and check the listdir() return value.

Reinhold
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

Florian said:
is there a python lib (preferably in the std lib) to monitor a directory for
changes (adding / deleting files) for Linux 2.6?

I recommend to use the python-fam library: sf.net/projects/python-fam.
On Debian, just install the python-fam package.

Regards,
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top