Skip to content

Commit 8af9729

Browse files
authored
Update filemanager.py
1 parent 8e5bd6b commit 8af9729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebook/services/contents/filemanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def rename_file(self, old_path, new_path):
576576
return
577577

578578
if (is_hidden(old_path, self.root_dir) or is_hidden(new_path, self.root_dir)) and not self.allow_hidden:
579-
raise web.HTTPError(400, f'Cannot rename file or directory {os_path!r}')
579+
raise web.HTTPError(400, f'Cannot rename file or directory {old_path!r}')
580580

581581
# Perform path validation prior to converting to os-specific value since this
582582
# is still relative to root_dir.

0 commit comments

Comments
 (0)