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

Glen Neff (gneff) gneff at cisco.com
Wed Oct 2 12:53:15 UTC 2019


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20191002/ea8abb7b/attachment.html>


More information about the users mailing list