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

Class createBlankFile

tools/divideTrainAndValidationSet.py:21–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

checkFileisExistMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected