MCPcopy
hub / github.com/mkdocs/mkdocs / remove

Method remove

mkdocs/structure/files.py:106–111  ·  view source on GitHub ↗

Remove file from Files collection.

(self, file: File)

Source from the content-addressed store, hash-verified

104 self._src_uris[file.src_uri] = file
105
106 def remove(self, file: File) -> None:
107 """Remove file from Files collection."""
108 try:
109 del self._src_uris[file.src_uri]
110 except KeyError:
111 raise ValueError(f'{file.src_uri!r} not in collection')
112
113 def copy_static_files(
114 self,

Callers 15

test_filesMethod · 0.95
run_validationMethod · 0.80
LeFunction · 0.80
disposeMethod · 0.80
closeMethod · 0.80
_destroyElementMethod · 0.80
_slideMethod · 0.80
showMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_filesMethod · 0.76