| 18 | |
| 19 | |
| 20 | class createBlankFile: |
| 21 | def __init__(self, originPath, goalPath): |
| 22 | self.origin_path = originPath |
| 23 | self.goal_path = goalPath |
| 24 | |
| 25 | def createNewFiles(self): |
| 26 | filenameList = readFilenameList(self.origin_path) |
| 27 | for fn in filenameList: |
| 28 | newPath = self.goal_path + '\{}'.format(fn) |
| 29 | if not os.path.exists(newPath): |
| 30 | os.makedirs(newPath) |
| 31 | print(newPath + " created") |
| 32 | print('Files have been created') |
| 33 | |
| 34 | |
| 35 | class divideDataSet: |