Skip to main content

find

Find a static file with the given path using all enabled finders.

If find_all is False (default), return the first matching absolute path (or None if no match). Otherwise return a list.

def find(
path: string,
find_all: boolean = False
) - > string | list | null

Find a static file with the given path using all enabled finders.

Parameters

NameTypeDescription
pathstringThe relative path of the static file to locate within the configured storage backends.
find_allboolean = FalseDetermines whether to return only the first match found or a complete list of all matching file paths across all finders.

Returns

TypeDescription
`stringlist