TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/xcoder-es/media-cleaner-pro/llms.txt
Use this file to discover all available pages before exploring further.
/api/browse endpoint lets a frontend file-picker traverse the server’s local filesystem one directory level at a time. For each immediate subdirectory it returns the directory name, its absolute path, and a non-recursive count of image files directly inside it. This count gives users a quick indication of which folders contain photos before they select a source or destination directory for a processing job.
Query parameters
Absolute path of the directory to list. Defaults to
"/" when the parameter is omitted. If the path does not exist or is not a directory, the endpoint returns an empty array rather than an error.Response fields
The endpoint returns a JSON array sorted alphabetically (case-insensitive) by directory name. Each element is aDirEntry object:
The directory’s basename, e.g.
"2024".Full absolute path to the directory, e.g.
"/home/user/photos/2024".Always
true in the current response — only directories are included in the listing.Number of image files directly inside this directory (non-recursive). The following file extensions are counted, case-insensitively:
jpg, jpeg, png, bmp, webp, gif, tiff, tif, heic, heif.Individual files are never returned — only subdirectories. If you need to know the image count for the directory itself (the
path you passed in), sum the image_count values of its children, or issue a separate request to the parent path.