Re: Searching files in directories

2005-10-14 Thread George Sakkis
"Larry Bates" wrote: > Not tested but should be close: > > import os > import shutil > > files = ['file1.txt'] > source_directory = '/tmp/source/' > destination_directory = '/tmp/destination/' > > for file in files: > src=os.path.join(source_directory, file > dst=os.path.join(destinat

Re: Searching files in directories

2005-10-14 Thread Larry Bates
Not tested but should be close: import os import shutil files = ['file1.txt'] source_directory = '/tmp/source/' destination_directory = '/tmp/destination/' for file in files: src=os.path.join(source_directory, file dst=os.path.join(destination_directory, file if os.path.exists(o