Skip to content

Commit 51bfc61

Browse files
author
maico
committed
Move files_handler_params from FileContentsManager to ContentsManager to match files_handler_class default
1 parent dd7daf9 commit 51bfc61

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

jupyter_server/services/contents/filemanager.py

-4
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,6 @@ def _checkpoints_class_default(self):
123123
def _files_handler_class_default(self):
124124
return AuthenticatedFileHandler
125125

126-
@default("files_handler_params")
127-
def _files_handler_params_default(self):
128-
return {"path": self.root_dir}
129-
130126
def is_hidden(self, path):
131127
"""Does the API style path correspond to a hidden directory or file?
132128

jupyter_server/services/contents/manager.py

+4
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,10 @@ def _default_checkpoints_kwargs(self):
363363
""",
364364
)
365365

366+
@default("files_handler_params")
367+
def _files_handler_params_default(self):
368+
return {"path": self.root_dir}
369+
366370
def get_extra_handlers(self):
367371
"""Return additional handlers
368372

0 commit comments

Comments
 (0)