Fix method name

pull/1359/head
Steven Silvester 10 years ago
parent fb8943b676
commit cbdb8f1ceb

@ -478,7 +478,7 @@ class FileContentsManager(FileManagerMixin, ContentsManager):
def get_kernel_path(self, path, model=None):
"""Return the initial API path of a kernel associated with a given notebook"""
if self.isdir(path):
if self.dir_exists(path):
return path
if '/' in path:
parent_dir = path.rsplit('/', 1)[0]

Loading…
Cancel
Save