##// END OF EJS Templates
Add method notebook_exists to NotebookManager....
Konrad Hinsen -
Show More
@@ -129,6 +129,22 b' class NotebookManager(LoggingConfigurable):'
129 129 """
130 130 return basename
131 131
132 def notebook_exists(self, name, path=''):
133 """Returns a True if the notebook exists. Else, returns False.
134
135 Parameters
136 ----------
137 name : string
138 The name of the notebook you are checking.
139 path : string
140 The relative path to the notebook (with '/' as separator)
141
142 Returns
143 -------
144 bool
145 """
146 raise NotImplementedError('must be implemented in a subclass')
147
132 148 # TODO: Remove this after we create the contents web service and directories are
133 149 # no longer listed by the notebook web service.
134 150 def list_dirs(self, path):
General Comments 0
You need to be logged in to leave comments. Login now