MCPcopy Index your code
hub / github.com/bugy/script-server / is_admin_file

Method is_admin_file

src/web/server.py:522–530  ·  view source on GitHub ↗
(self, relative_path)

Source from the content-addressed store, hash-verified

520 return super().get_absolute_path(root, path)
521
522 def is_admin_file(self, relative_path):
523 for admin_file in self.admin_files:
524 if admin_file.endswith('*'):
525 if relative_path.startswith(admin_file[:-1]):
526 return True
527 elif relative_path == admin_file:
528 return True
529
530 return False
531
532
533class ThemeStaticFileHandler(AuthorizedStaticFileHandler):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected