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