Show More
@@ -100,7 +100,7 b' class FileNotebookManager(NotebookManager):' | |||
|
100 | 100 | full_path = self.get_path(notebook_name, notebook_path) |
|
101 | 101 | if change == "name": |
|
102 | 102 | new_path = self.get_path(data['name'], notebook_path) |
|
103 |
if os.path.isfile(new_path) |
|
|
103 | if not os.path.isfile(new_path): | |
|
104 | 104 | os.rename(full_path, |
|
105 | 105 | self.get_path(data['name'], notebook_path)) |
|
106 | 106 | notebook_name = data['name'] |
General Comments 0
You need to be logged in to leave comments.
Login now