python equivalent of bash find

BartlebyScrivener rpdooling at gmail.com
Thu Mar 1 21:14:43 CET 2007


I recently moved from XP to Linux, but would like to use Python
whenever possible.

line from bash script:

find ~/Mail -xdev -type f \( -mtime 0 -or -mtime 1 \) -exec cp -aPvu
"{}" /backup-dest \;

What modules would I use to accomplish this in Python? Or any other
Python tricks to copy or backup all files modified today?

Thank you,

rd

"You can't have everything. Where would you put it?"--Steven Wright




More information about the Python-list mailing list