Documentation Index
Fetch the complete documentation index at: https://mintlify.com/KilzaNiko/WimExplorer/llms.txt
Use this file to discover all available pages before exploring further.
POST /api/open
Opens a WIM, ESD, or SWM file and loads its image metadata into the server’scurrentWim state. Subsequent browse and file-operation requests operate on this file.
The server tries to parse metadata from the file’s embedded XML first. If XML parsing fails, it falls back to plain-text parsing of wimlib-imagex info output.
Request
Absolute path to the WIM, ESD, or SWM file on the local filesystem.Example:
C:\\sources\\install.wimResponse
Absolute path of the opened file, echoed back from the request.
Top-level metadata about the WIM archive.
One object per image in the file.
Errors
| Status | Condition |
|---|---|
400 | wimPath was not provided in the request body |
404 | The file at wimPath does not exist on disk |
500 | wimlib-imagex failed to read the file |
Example
GET /api/browse
Returns a complete recursive file tree for a specific image in the currently open WIM. Also rebuilds the internal conflict-detection path index (wimPathsLower) used by POST /api/check-conflicts.
The server uses 7-Zip (7z l -slt) to list files when it is available. If 7-Zip is not installed or fails, it falls back to wimlib-imagex dir.
Browsing large images (e.g., a full Windows install.wim image) can take several seconds. Monitor progress in real time via
GET /api/logs/stream.Query parameters
1-based index of the image to browse. Defaults to the index of the last selected image. Setting this parameter also updates
currentWim.imageIndex for subsequent operations.Response
The response is a single tree node representing the root directory\\. Every directory node contains a children array with its contents.
Entry name. Always
"\\" for the root.Full WIM-relative path using backslash separators. Always
"\\" for the root.Either
"directory" or "file".File size in bytes.
0 for directories.Last-modified timestamp as an ISO 8601 datetime string (e.g.,
"2024-06-15T10:30:00"). Empty string if not available.Child nodes. Present on directory nodes; omitted on file nodes. Each child has the same shape as the parent.
Errors
| Status | Condition |
|---|---|
400 | No WIM is currently open |
500 | Both 7-Zip and wimlib-imagex dir failed |
