Show More
@@ -52,9 +52,13 b' class NotebookManager(LoggingConfigurable):' | |||||
52 |
|
52 | |||
53 | dict(notebook_id=notebook,name=name) |
|
53 | dict(notebook_id=notebook,name=name) | |
54 | """ |
|
54 | """ | |
55 | names = os.listdir(self.notebook_dir) |
|
55 | import glob | |
56 | names = [name.split(u'.')[0] |
|
56 | ||
57 | for name in names if name.endswith(self.filename_ext)] |
|
57 | names = glob.glob(os.path.join(self.notebook_dir, | |
|
58 | '*' + self.filename_ext)) | |||
|
59 | names = [os.path.splitext(os.path.basename(name))[0] | |||
|
60 | for name in names] | |||
|
61 | ||||
58 | data = [] |
|
62 | data = [] | |
59 | for name in names: |
|
63 | for name in names: | |
60 | if name not in self.rev_mapping: |
|
64 | if name not in self.rev_mapping: |
General Comments 0
You need to be logged in to leave comments.
Login now