Hi, I am not trying to preserve the directory structure, quite the opposite I'm trying to flatten the source directory by only having the .txt files in the destination. Just a note I have tried <https://stackoverflow.com/questions/246559/how-can-i-recursively-copy-files-of-a-specific-pattern-into-a-single-flat-folder>
for /r %x in (*.dll, *pdb) do copy "%x" targetDir\ But keep getting weird escape characters such as \ so the copy command does not work On Wed, Oct 2, 2019 at 1:53 PM Glen Neff (gneff) <gn...@cisco.com> wrote: > This is probably more of a Python question than a Buildbot question, but I > think the glob.glob() function will be the best place to start in getting > your recursive list of *.txt files. > > > > Are you trying to preserve the directory structure of the source at the > target? > > > > -G > > > > > > *From:* users <users-boun...@buildbot.net> *On Behalf Of *honas grael > *Sent:* Wednesday, October 2, 2019 08:44 > *To:* Buildbot <users@buildbot.net> > *Subject:* [us...@bb.net] copying all text files from one folder to > another on the worker > > > > Hello I have a source and destination folder on my worker. I want to copy > all the text files (*.txt) from the source folder to the destination folder. > > The source folder has multiple sub folders. I essentially want to crawl > all the files & folders in the source location and copy and txt files that > exist to the destination location. > > How can I do this? > _______________________________________________ > users mailing list > users@buildbot.net > https://lists.buildbot.net/mailman/listinfo/users
_______________________________________________ users mailing list users@buildbot.net https://lists.buildbot.net/mailman/listinfo/users