Actions10
- Connection Actions
- File Actions
- Directory Actions
File → Get Metadata
AI-generatedSummary
Check if a file exists on an SMB share and return its size in bytes.
Inputs
- filePath (required) — Path to the file relative to the share root.
- options — Optional SMB operation configuration affecting timeout and share override.
Output shape
object
Returns { filePath, exists, size } where size is 0 if the file does not exist. All values are derived directly from the SMB2 client's exists() and getSize() calls.
Examples
Example 1: Verify a configuration file exists and check its size.
Set filePath to the relative path of the target file. Optional timeout and shareOverride may be adjusted via the options collection.