Windows SMB2 icon

Windows SMB2

Access Windows network file shares via SMB2 protocol

Actions10

File → Get Metadata

AI-generated

Summary

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.

Links

Discussion