MCPcopy Create free account
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / listfiles

Function listfiles

src/backbone.py:122–125  ·  view source on GitHub ↗
(dirname)

Source from the content-addressed store, hash-verified

120 def wrap_gradio_gpu_call(f): return f # Displaying various stats is not supported
121
122 def listfiles(dirname):
123 import os
124 filenames = [os.path.join(dirname, x) for x in sorted(os.listdir(dirname)) if not x.startswith(".")]
125 return [file for file in filenames if os.path.isfile(file)]
126
127 def get_opt(name, default): return default # Configuring is not supported
128

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected