Skip to content

Commit feb5a48

Browse files
author
AndrewChen12
authored
🐛Fix issue with invalid directory name check (#282)
* Removed check for "\", "/", and ":" in directory name * Corrected accidental removal of wrong character
1 parent db18b14 commit feb5a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pros/conductor/conductor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def new_project(self, path: str, no_default_libs: bool = False, **kwargs) -> Pro
283283
if Path(path).exists() and Path(path).samefile(os.path.expanduser('~')):
284284
raise dont_send(ValueError('Will not create a project in user home directory'))
285285
for char in str(Path(path)):
286-
if char in ['/', '?', '<', '>', '\\', ':', '*', '|', '^', '#', '%', '&', '$', '+', '!', '`', '\'', '=',
286+
if char in ['?', '<', '>', '*', '|', '^', '#', '%', '&', '$', '+', '!', '`', '\'', '=',
287287
'@', '\'', '{', '}', '[', ']', '(', ')', '~'] or ord(char) > 127:
288288
raise dont_send(ValueError(f'Invalid character found in directory name: \'{char}\''))
289289
proj = Project(path=path, create=True)

0 commit comments

Comments
 (0)