Skip to content

Commit 73865cb

Browse files
regex for creating parent directory should not expect an email address
1 parent 5518176 commit 73865cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbclient/WorkspaceClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ def create_repo(self, repo_str, error_logger, checkpoint_repo_set):
922922
parent_directory = re.sub(r"^RESOURCE_DOES_NOT_EXIST: Parent directory ", '', resp.get('message'))
923923
parent_directory = re.sub(r" does not exist.$", '', parent_directory)
924924
if re.fullmatch(
925-
r'/Repos/.+\@.+', parent_directory
925+
r'/Repos/.+[^/]', parent_directory
926926
):
927927
logging.info(f"Creating parent directory {parent_directory}")
928928
resp2 = self.post('/workspace/mkdirs', {"path": parent_directory})

0 commit comments

Comments
 (0)