Searching files in directories

pkilambi at gmail.com pkilambi at gmail.com
Fri Oct 14 13:31:20 EDT 2005


can anyone help me with this...

I want to search for a list for files in a given directory and if it
exists copy them to destination directory

so what i am looking for is :

file = 'file1.txt'
source_directory      = '/tmp/source/'
destination_directory = '/tmp/destination/'

so If the file exists in source_directory cp that file to the
destination_directory..

hope I am clear




More information about the Python-list mailing list