Skip to main content
Operations for managing files and folders. Bases: StashClientProtocol Mixin for file-related client methods.

Functions

find_file

Find a file by its ID or path. Parameters: Returns: Raises: Examples: Find a file by ID:
Find a file by path:
Check file type:

find_files

Find files matching the given filters. Parameters: Returns: Examples: Find all files in a directory:
Find video files by size:
Find files by IDs:

move_files

Move files to a new location. Parameters: Returns: Examples: Move files to a new folder by path:
Move files to a new folder by ID:
Move and rename a single file:

file_set_fingerprints

Set fingerprints for a file. Parameters: Returns: Examples: Set MD5 fingerprint:
Set multiple fingerprints:

scene_assign_file

Assign a file to a scene. Parameters: Returns: Examples: Assign a file to a scene:
Using the input type:

delete_files

Delete files. Parameters: Returns: Raises:

destroy_files

Destroy file database entries without deleting files from disk. Unlike delete_files, this only removes the DB entry. The file remains on disk and will be re-scanned if the path is still monitored. Parameters: Returns: Raises:

reveal_file_in_file_manager

Open the file’s containing folder in the OS file manager. Parameters: Returns: Raises:

reveal_folder_in_file_manager

Open the folder in the OS file manager. Parameters: Returns: Raises:

find_folder

Find a folder by its ID or path. Parameters: Returns: Raises:

find_folders

Find folders matching the given filters. Parameters: Returns: