15 lines
255 B
Python
Executable file
15 lines
255 B
Python
Executable file
#!/bin/env python3
|
|
|
|
import os
|
|
import sys
|
|
|
|
exit_code = 0
|
|
|
|
for filename in sys.argv[1:]:
|
|
if os.path.exists(filename):
|
|
print(f"{filename} exists!")
|
|
else:
|
|
print(f"{filename} does not exist!")
|
|
exit_code = 1
|
|
|
|
sys.exit(exit_code)
|