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