directory and file related doubts??

Posted by kaushik on Stack Overflow See other posts from Stack Overflow or by kaushik
Published on 2010-05-28T10:50:02Z Indexed on 2010/05/28 10:51 UTC
Read the original article Hit count: 154

Filed under:

i have a directory with around 1000 files....i want to run a same code for each of these file...

my code requires the file name to be inputted.

i have written code to copy the information of one into other in other format... please suggest a method to copy all 1000 files one by one without need to change the file name every time

and i have a field serial_num which need to be continous i.e if 1st file has upto 30 then while coping other file it should continue from 30not from 0 again

require suggestion please

thanks..

© Stack Overflow or respective owner

Related posts about python