Acknowledgments
Thanks to the help of friends keeptg,
Original link as follows:
https://www.cnblogs.com/keeptg/p/10944109.html
1 Introduction
Lane detection recent study of knowledge, at the time production data collection, the need for file copying operation ~
2 Jaap Nanxi common file copy operation in Python
2.1 Create a file directory chain
Use the following code,
# create the folders if not already exists
os.makedirs(target, exist_ok = True)
Here the "exist_ok = True" purpose is to already exist in the folder, no error prompt program;