pyvista.examples.downloads.file_from_files#

file_from_files(target_path, fnames)[source]#

Return the full path of a single file within a list of files.

Parameters:
target_pathstr

Path of the file to match the end of. If you need to match a file relative to the root directory of the archive, start the path with "unzip". Path must be a posix-like path.

fnameslist

List of filenames.

Returns:
str

Entry in fnames matching filename.