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
{
"content_type": "text/csv",
"etag": "\"3c41b0823f05cf86da0d560b0e033c03\"",
"last_modified": 1736769600000,
"size": 2048
}
Notes
- Returns file metadata: size, content type,
etag, and last modification time - Does not download file contents, making it efficient for large files
- Use this command to verify file existence before download operations
- The command works on files only. For a directory, it reports that the file was not found and exits with code
4. Usesignaloid-cli files lsfor directories
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