fix: allow dash in path

This commit is contained in:
2023-01-14 06:13:40 +01:00
parent 24e72a80ee
commit 7a4d6a4531

View File

@@ -15,7 +15,7 @@ if __name__ == "__main__":
args = parser.parse_args()
# check parameter #
if not args.PATH.replace("/", "").isalnum():
if not args.PATH.replace("/", "").replace("-","").isalnum():
print("Illegal Path: {} (must be alphanum + /)".format(args.PATH))
sys.exit(1)
elif not args.PATH.startswith("/"):