4
4
import pathlib
5
5
6
6
7
- class OutputType (Enum ):
8
- COMMANDS = 1 ,
9
- SCHEMAS = 2 ,
10
- OTHER = 3
7
+ # class OutputType(Enum):
8
+ # COMMANDS = 1,
9
+ # SCHEMAS = 2,
10
+ # OTHER = 3
11
11
12
- def cleanFolder (folder ):
13
- for top , dirs , files in os .walk (folder ):
14
- for file in files :
15
- os .remove (os .path .join (top ,file ))
16
- for dir in dirs :
17
- directory = os .path .join (folder , dir )
18
- cleanFolder (directory )
19
- os .rmdir (directory )
12
+ # def cleanFolder(folder):
13
+ # for top, dirs, files in os.walk(folder):
14
+ # for file in files:
15
+ # os.remove(os.path.join(top,file))
16
+ # for dir in dirs:
17
+ # directory = os.path.join(folder, dir)
18
+ # cleanFolder(directory)
19
+ # os.rmdir(directory)
20
20
21
- def cleanOutput (outType : OutputType ):
22
- if outType == OutputType .COMMANDS :
23
- dirToClean = pathlib .Path (os .path .join (os .curdir , 'commandsOutput' ))
24
- if outType == OutputType .SCHEMAS :
25
- dirToClean = pathlib .Path (os .path .join (os .path .join (os .curdir , 'test' ), 'output' ))
21
+ # def cleanOutput(outType: OutputType):
22
+ # if outType == OutputType.COMMANDS:
23
+ # dirToClean = pathlib.Path(os.path.join(os.curdir, 'commandsOutput'))
24
+ # if outType == OutputType.SCHEMAS:
25
+ # dirToClean = pathlib.Path(os.path.join(os.path.join(os.curdir, 'test'), 'output'))
26
26
27
- cleanFolder (dirToClean )
27
+ # cleanFolder(dirToClean)
28
28
29
- def waitForInput (isToWait : str ):
30
- if isToWait and isToWait .lower () == 'y' : input ('Go on..' )
29
+ # def waitForInput(isToWait: str):
30
+ # if isToWait and isToWait.lower() == 'y': input('Go on..')
0 commit comments