Apr-26-2020, 10:44 AM
Hi!
Trying to create three different sub-folders named: "raw" "right" and "left" in one folder named from a txt file. I succeeded to make one sub-folder, "raw" in each.
Would appreciate tips on how to think/ solve this.
Thanks in advance!
Trying to create three different sub-folders named: "raw" "right" and "left" in one folder named from a txt file. I succeeded to make one sub-folder, "raw" in each.
1 2 3 4 5 6 |
import os path = '/raw' with open ( 'regina.txt' ) as x: for line in x: line = line.strip() os.makedirs(line + path) |

Thanks in advance!