Re: Unexpected output while walking dirs

2007-01-02 Thread Evan Carmi
ackup-msf', > time.strftime('%Y%m%d%H%M%S')) > backupfilenames = [] > for f in allfiles: > backupfilenames.append((f, os.path.join(backuproot, > os.path.basename(f > > >From here it is easy to do the move. > Thanks so much for your help, you got me started and I fin

Re: how to move files based on file-ending from dirs and subdirs to specific dir?

2007-01-02 Thread Evan Carmi
Marc 'BlackJack' Rintsch gmx.net> writes: > This line is quite complicated and I don't really grasp what it's doing. > Maybe some comments, possible with examples, are needed here. And maybe > then you'll see why it doesn't work as wanted!? If these are the > destination paths and they should b

how to move files based on file-ending from dirs and subdirs to specific dir?

2007-01-01 Thread Evan Carmi
hey, i am trying to move files with a specific file-ending (.msf) to dir above their current location. my code so far works as long as all the files are on the same dir level. but how can i make it work if there are multiple subdirs with files inside of them on different dir levels? my code so

Unexpected output while walking dirs

2006-12-28 Thread Evan Carmi
hi, i am creating a program to go through a directory structure recursively (including directories below it) and move all files that end in .msf to a directory above the current level. the code i have so far is as follows: #!/usr/bin/python #Author: Evan Carmi #Date: 20061101 #Purpose: To