Skip to main content

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

OptionRequiredDescription
--path <path>YesFile 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:

  1. Verify the path exists:
    signaloid-cli files ls --path datasets/
  2. Check for typos in the file path
  3. Ensure proper path format (no leading slash)

See Also