I want to open a folder containing x zipfiles.
I have this code:
parser = argparse.ArgumentParser(description='Test')
parser.add_argument("foldername", help="Foldername of log files archive to parse")
args = parser.parse_args()
with open(args.foldername) as files:
filename = args.filename
print(filename)
But I get error code: PermissionError: [Errno 13] Permission denied: 'Test'
I would like the zipfiles in the folder to be listed in an array when I run the code.