Re: Help please with code to find and move files.
- From: "Gabriel Genellina" <gagsl-py2@xxxxxxxxxxxx>
- Date: Mon, 31 Dec 2007 06:48:48 -0200
En Mon, 31 Dec 2007 05:09:37 -0200, <inFocus@xxxxxx> escribió:
I am sorry if I was not clear in what I was trying to achieve. All I
wanted was simple way to achieve what windows does when you use search
for Files or Folders, and all the files that mach two words like foo
and bar in the file name to be moved or copied to a specified folder,
duplicates should not be copied just skipped.
I think John Machim comments addressed most -if not all- your potential problems. You should be able to modify your script to met your goals; just do it one step at a time. Omit the actual file copy at first, just print what you would do. See what happens, fix the iteration if needed, once you print the right set of files try to actually copy them.
--
Gabriel Genellina
.
- References:
- Help please with code to find and move files.
- From: inFocus
- Re: Help please with code to find and move files.
- From: John Machin
- Re: Help please with code to find and move files.
- From: inFocus
- Re: Help please with code to find and move files.
- From: John Machin
- Re: Help please with code to find and move files.
- From: inFocus
- Re: Help please with code to find and move files.
- From: inFocus
- Help please with code to find and move files.
- Prev by Date: Re: Tab indentions on different platforms?
- Next by Date: Re: Tab indentions on different platforms?
- Previous by thread: Re: Help please with code to find and move files.
- Next by thread: ElementTree should parse string and file in teh same way
- Index(es):
Relevant Pages
|