Skip to content

Commit 839f1c9

Browse files
author
maico
committed
Move files_handler_params from FileContentsManager to ContentsManager to match files_handler_class default
1 parent 132cf04 commit 839f1c9

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
@@ -361,6 +361,10 @@ def _default_checkpoints_kwargs(self):
361361
""",
362362
)
363363

364+
@default("files_handler_params")
365+
def _files_handler_params_default(self):
366+
return {"path": self.root_dir}
367+
364368
def get_extra_handlers(self):
365369
"""Return additional handlers
366370

0 commit comments

Comments
 (0)