Frends.FTP.WriteFile / 1.2.0
Summary
Creates a file on an FTP or FTPS server directly from content held in the Process, with no local file involved.
Typical use — small generated files such as trigger or manifest files
Input parameters.
| Name | Type | Default | Example | Description |
|---|---|---|---|---|
| Path | String |
– | / , /SubDir/test.txt |
Full path for the file to be written. |
| Content | String |
– | This is test file |
Text content to be written. |
| CreateDestinationDirectories | Boolean |
False |
true |
Enables Task to create destination directories if they don't exist. |
| FileEncoding | FileEncoding |
ANSI |
FileEncoding.ANSI |
If set, this ecoding will be used to encode and decode command parameters and server responses, such as file names. By selecting 'Other' you can use any encoding. Possible values:
|
| EnableBom | Boolean |
False |
true |
Additional option for UTF-8 encoding to enable bom. |
| EncodingInString | String |
– | iso-8859-1 |
File encoding to be used. Encoding don't support any unicode encoding. It only support the code page encodings. A partial list of possible encodings: https://learn.microsoft.com/en-us/dotnet/api/system.text.encoding.getencodings?view=net-6.0#examples. |
| WriteBehaviour | WriteOperation |
– | WriteOperation.Append |
How the file write should work if a file with the new name already exists. Possible values:
|
| AddNewLine | Boolean |
False |
true |
If enabled new line is added to the existing file before appending the content. |