FileTransfer Node (FTP/SFTP) (#779)

* 🚧 Setup

* 🚧 SFTP finished

*  FTP Finished / Tested

* Tab indentation

* 🐛 Fix some issues on FTP Node

*  Changed dependencies

* Update FileTransfer.node.ts

*  Fix issues on FTP-Node

*  Fixed uploading to subdirectories

Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
Co-authored-by: Jan <janober@users.noreply.github.com>
This commit is contained in:
Rupenieks
2020-08-04 08:01:13 +01:00
committed by GitHub
parent 3cafc68f19
commit a66e483a74
4 changed files with 523 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
export class Sftp implements ICredentialType {
name = 'sftp';
displayName = 'SFTP';
properties = [
{
displayName: 'Host',
name: 'host',
required: true,
type: 'string' as NodePropertyTypes,
default: '',
},
{
displayName: 'Port',
name: 'port',
required: true,
type: 'number' as NodePropertyTypes,
default: 22,
},
{
displayName: 'Username',
name: 'username',
required: true,
type: 'string' as NodePropertyTypes,
default: '',
},
{
displayName: 'Password',
name: 'password',
type: 'string' as NodePropertyTypes,
typeOptions: {
password: true,
},
default: '',
},
];
}