removed unused function
This commit is contained in:
10
cbrtocbz.py
10
cbrtocbz.py
@@ -14,16 +14,6 @@ def vprint(text, level=0):
|
|||||||
print(text)
|
print(text)
|
||||||
vprint.verbosity = 0
|
vprint.verbosity = 0
|
||||||
|
|
||||||
def add_files(zip: zipfile.ZipFile, directory):
|
|
||||||
for dirpath, dirs, files in walk(directory):
|
|
||||||
for f in files:
|
|
||||||
path = join(dirpath, f)
|
|
||||||
vprint('writing ' + path, 2)
|
|
||||||
zip.write(path)
|
|
||||||
for d in dirs:
|
|
||||||
path = join(dirpath, d)
|
|
||||||
add_files(zip, path)
|
|
||||||
|
|
||||||
def main(arguments):
|
def main(arguments):
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('-e', '--ext', type=str)
|
parser.add_argument('-e', '--ext', type=str)
|
||||||
|
|||||||
Reference in New Issue
Block a user