Skip to content

Commit 42491a6

Browse files
authored
validate-spice: Check for whitespace in top-level paths (#960)
1 parent c757145 commit 42491a6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

validate-spice

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ def main():
8585
is_valid = []
8686
if args.all:
8787
for file_path in os.listdir("."):
88+
if any(char.isspace() for char in file_path):
89+
raise CheckError(f"Invalid whitespace in path '{file_path}'")
8890
if os.path.isdir(file_path) and not file_path.startswith("."):
8991
is_valid.append(validate_xlet(file_path))
9092
elif args.uuid:

0 commit comments

Comments
 (0)