Skip to content

Commit

Permalink
modified: Kernel/Notebook.wl
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryI committed Sep 2, 2023
1 parent c13a057 commit 2602fce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Kernel/Notebook.wl
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,12 @@ FileOperate["Rename"][urlpath_, new_] := Module[{path}, With[{channel = $Associa
Print["To"];
Print[new];

If[path === jsfn`Notebooks[channel]["path"],
Print["Notebook detected!"];
NotebookRename[FileBaseName[new]];
Return[Null. Module];
]

RenameFile[path, FileNameJoin[{DirectoryName[path], new}]];

If[MissingQ[channel],
Expand Down

0 comments on commit 2602fce

Please sign in to comment.