MCPcopy Create free account
hub / github.com/bobolike123/NetworkTrafficAnalysis / createBlankFile

Class createBlankFile

tools/copyRandomSample.py:20–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20class 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
35class divideDataSet:

Callers 1

checkFileisExistMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected