Download and Verify SFTP File

Network & cloud · nd-sftp-download-file · nodestly-sftp 1.0.0

Downloads an SFTP file to a selected local folder and verifies an optional expected SHA-256 before publishing it.

Inputs and outputs

  • session — SFTP session (text, sftp.pinned-session). Required connector.
  • remotePath — Remote file path (text). Connector or setting.
  • destinationFolder — Destination folder (text, filesystem.folder). Required connector.
  • name — Local filename (text). Connector or setting.
  • expectedSha256 — Expected SHA-256 (text). Connector or setting.
  • overwrite — Replace existing file (boolean). Connector or setting.
  • fire — Optional start signal (fire).
  • file — File (text, filesystem.file).
  • bytes — Bytes (number).
  • sha256 — SHA-256 (text).
  • fire — Continuation after success (fire).

Settings

  • remotePath (text). Default empty.
  • name (text). Default empty.
  • expectedSha256 (text). Default empty.
  • overwrite (checkbox). Default false.

A connected value takes precedence over the saved setting, including an empty string or false.

Connect a writable local folder and choose one ordinary local filename. Use a relative remote path to a regular file of up to 64 MiB. The local volume must support hard links when creating a new destination. For integrity verification, enter the expected digest as exactly 64 hexadecimal characters. A mismatch leaves the destination untouched. An empty digest setting makes the block compute and return the digest. Replacement is disabled by default and applies only to regular files.

Requirements and errors

Install the SFTP component through Nodestly’s workflow requirements. Use a server that accepts SFTP over SSH for this account. If a file, credential, or session has expired, reconnect it in the same run. Correct the path, permissions, fingerprint, or credential indicated by the error. Failure stops execution without output or Fire.