signaloid-cli files stat
Get file metadata without downloading.
Note: This command is an alias for signaloid-cli files get. Both command names work interchangeably.
Synopsis
signaloid-cli files stat --path <path>
signaloid-cli files get --path <path>
Description
Retrieve detailed metadata for a specific file without downloading its contents. This is useful for checking file size, type, and modification dates before performing operations.
Options
| Option | Required | Description |
|---|---|---|
--path <path> | Yes | File path |
Examples
Get file metadata
signaloid-cli files stat --path datasets/data.csv
Output
{
"Path": "datasets/data.csv",
"Size": 2048,
"Type": "file",
"ContentType": "text/csv",
"ModifiedAt": "2025-01-13T12:00:00Z",
"CreatedAt": "2025-01-10T08:00:00Z"
}
Notes
- Returns detailed file metadata including size, content type, and timestamps
- Does not download file contents, making it efficient for large files
- Use this command to verify file existence before download operations
Troubleshooting
"File not found" Error
If you receive a "File not found" error:
- Verify the path exists:
signaloid-cli files ls --path datasets/ - Check for typos in the file path
- Ensure proper path format (no leading slash)
See Also
- signaloid-cli files - Files command overview
- signaloid-cli files ls - List files in directory
- signaloid-cli files download - Download files