We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01686c5 commit 5fa8dc4Copy full SHA for 5fa8dc4
ssri/ssri.py
@@ -358,6 +358,15 @@ def main():
358
filesToSearch = None
359
360
if args.copy_all:
361
+ if not os.path.exists(args.inputFile[0]):
362
+ print(
363
+ f"{CRED}! Input directory: {args.inputFile[0]} does not exist - exiting{CEND}"
364
+ )
365
+ numWarnings += 1
366
+ exit()
367
+ if os.path.isfile(args.inputFile[0]):
368
+ print(f"{CRED}! Input directory: {args.inputFile[0]} is a file, exiting{CEND}")
369
370
copyAllFiles(args.inputFile[0], args.output[0])
371
noWarnings = True # Turns off warnings as we will be overwriting new copied files anyway
372
0 commit comments