Re: how to know if folder contents have changed

2007-11-17 Thread Martin Marcher
I think that without further information from the OP about the requirements all we can do is guessing. So both of our solutions are just theory after all (just my personal opinion) 2007/11/14, [EMAIL PROTECTED] [EMAIL PROTECTED]: On Nov 12, 11:27 am, Martin Marcher [EMAIL PROTECTED] wrote:

Re: how to know if folder contents have changed

2007-11-17 Thread Martin Marcher
I just found this for win32 which seems to be the same as FAM provides: http://tgolden.sc.sabren.com/python/win32_how_do_i/watch_directory_for_changes.html So it's not about FAM as a definitive product to be used but more like something nearer to the OS that is there anyway and will tell you

Re: how to know if folder contents have changed

2007-11-13 Thread [EMAIL PROTECTED]
On Nov 12, 11:27 am, Martin Marcher [EMAIL PROTECTED] wrote: 2007/11/12, [EMAIL PROTECTED] [EMAIL PROTECTED]: Why not use the file creation/modification timestamps? because you'd have to a) create a thread that pulls all the time for changes or Given that it would only involve a check of

Re: how to know if folder contents have changed

2007-11-12 Thread Jorge Godoy
[EMAIL PROTECTED] wrote: can someone suggest a better way? i know it is a general programming problem..but i wish to know if a python solution exists Use pyfam. I believe all docs are in fam but it integrates with that. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to know if folder contents have changed

2007-11-12 Thread [EMAIL PROTECTED]
On Nov 11, 11:03 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi i am trying to create a cache of digitized values of around 100 image files in a folder..In my program i would like to know from time to time if a new image has been added or removed from the folder.. Why not use the file

Re: how to know if folder contents have changed

2007-11-12 Thread Martin Marcher
2007/11/12, [EMAIL PROTECTED] [EMAIL PROTECTED]: Why not use the file creation/modification timestamps? because you'd have to a) create a thread that pulls all the time for changes or b) test everytime for changes fam informs in a notification like way. Personally I'd create a hidden cache

how to know if folder contents have changed

2007-11-11 Thread [EMAIL PROTECTED]
hi i am trying to create a cache of digitized values of around 100 image files in a folder..In my program i would like to know from time to time if a new image has been added or removed from the folder.. one scheme suggested was to create a string from the names of sorted image files and give

Re: how to know if folder contents have changed

2007-11-11 Thread Marc 'BlackJack' Rintsch
On Sun, 11 Nov 2007 21:03:33 -0800, [EMAIL PROTECTED] wrote: one scheme suggested was to create a string from the names of sorted image files and give it as the cache name.. ie ,if i have one.jpg,three.jpg,new.jpg , i will name the cache as 'newonethree.cache' and everytime i want to