Move
yaml
type: "io.kestra.plugin.fs.smb.Move"
Move a file to a different share / folder on a SMB (Samba for eg.) server.
If the destination directory doesn't exist, it will be created
Examples
yaml
id: fs_smb_move
namespace: company.team
tasks:
- id: move
type: io.kestra.plugin.fs.smb.Move
host: localhost
port: "445"
username: foo
password: pass
from: "/my_share/dir1/file.txt"
to: "/my_share/dir2/file.txt"
Properties
from
- Type: string
- Dynamic: ✔️
- Required: ✔️
The file or directory to move from remote server.
host
- Type: string
- Dynamic: ✔️
- Required: ✔️
Hostname of the remote server
to
- Type: string
- Dynamic: ✔️
- Required: ✔️
The path to move the file or directory to on the remote server.
The full destination path (with filename optionally) If end with a
/
, the destination is considered as a directory and filename will be happen If the destFile exists, it is deleted first.
password
- Type: string
- Dynamic: ✔️
- Required: ❌
Password on the remote server
port
- Type: string
- Dynamic: ✔️
- Required: ❌
- Default:
445
Port of the remote server
username
- Type: string
- Dynamic: ✔️
- Required: ❌
Username on the remote server
Outputs
from
- Type: string
- Required: ❌
- Format:
uri
The from uri
to
- Type: string
- Required: ❌
- Format:
uri
The destination uri
Definitions
Was this page helpful?