[users at bb.net] copying all text files from one folder to another on the worker

honas grael honasgraeymael at gmail.com
Wed Oct 2 12:59:30 UTC 2019


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) <gneff at 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-bounces at buildbot.net> *On Behalf Of *honas grael
> *Sent:* Wednesday, October 2, 2019 08:44
> *To:* Buildbot <users at buildbot.net>
> *Subject:* [users at 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 at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20191002/0e8600c0/attachment.html>


More information about the users mailing list