MCPcopy Create free account
hub / github.com/wechaty/python-wechaty / add_dir

Method add_dir

src/wechaty/schema.py:116–124  ·  view source on GitHub ↗

add the static file dir Args: static_file_dir (str): the path of the static file

(self, static_file_dir: Optional[str])

Source from the content-addressed store, hash-verified

114 self.cache_dirs = cache_dirs or []
115
116 def add_dir(self, static_file_dir: Optional[str]) -> None:
117 """add the static file dir
118
119 Args:
120 static_file_dir (str): the path of the static file
121 """
122 if not static_file_dir:
123 return
124 self.cache_dirs.append(static_file_dir)
125
126 def _find_file_path_recursive(self, base_dir: str, name: str) -> Optional[str]:
127 """find the file based on the file-name which will & should be union

Callers 1

add_pluginMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected