mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
Allow period characters in notebook names.
This commit is contained in:
parent
b5b4cf260f
commit
fb2c31b2ea
@ -52,9 +52,13 @@ class NotebookManager(LoggingConfigurable):
|
||||
|
||||
dict(notebook_id=notebook,name=name)
|
||||
"""
|
||||
names = os.listdir(self.notebook_dir)
|
||||
names = [name.split(u'.')[0]
|
||||
for name in names if name.endswith(self.filename_ext)]
|
||||
import glob
|
||||
|
||||
names = glob.glob(os.path.join(self.notebook_dir,
|
||||
'*' + self.filename_ext))
|
||||
names = [os.path.splitext(os.path.basename(name))[0]
|
||||
for name in names]
|
||||
|
||||
data = []
|
||||
for name in names:
|
||||
if name not in self.rev_mapping:
|
||||
|
Loading…
Reference in New Issue
Block a user