Windows SMB2 icon

Windows SMB2

Access Windows network file shares via SMB2 protocol

Actions10

File → Write

AI-generated

Summary

Write content to a file on a Windows SMB2 share.

Inputs

  • filePath (required) — Path to the file relative to the share root
  • fileContent (required) — Content to write to the file
  • encoding — Encoding for file content, defaults to UTF-8
  • overwrite — Replace existing file (yes) or raise error if present (no), defaults to yes
  • options — Additional SMB2 options including timeout and share override

Output shape

filePath, size in bytes, encoding, success: true

Returned after successful write; throws NodeOperationError on failure unless continueOnFail is enabled

Examples

Example 1: Write UTF-8 text to a new file, overwriting if it exists

filePath: 'data/report.txt', fileContent: 'Quarterly results', encoding: 'utf8', overwrite: 'yes'

Links

Discussion