mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-05 12:19:58 +08:00
Fix to if test
This commit is contained in:
parent
6154c5f626
commit
18fdb26273
@ -100,7 +100,7 @@ class FileNotebookManager(NotebookManager):
|
||||
full_path = self.get_path(notebook_name, notebook_path)
|
||||
if change == "name":
|
||||
new_path = self.get_path(data['name'], notebook_path)
|
||||
if os.path.isfile(new_path) == False:
|
||||
if not os.path.isfile(new_path):
|
||||
os.rename(full_path,
|
||||
self.get_path(data['name'], notebook_path))
|
||||
notebook_name = data['name']
|
||||
|
Loading…
Reference in New Issue
Block a user