n8n/packages/nodes-base/credentials/Ftp.credentials.ts
Rupenieks a66e483a74
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>
2020-08-04 09:01:13 +02:00

42 lines
726 B
TypeScript

import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
export class Ftp implements ICredentialType {
name = 'ftp';
displayName = 'FTP';
properties = [
{
displayName: 'Host',
name: 'host',
required: true,
type: 'string' as NodePropertyTypes,
default: '',
placeholder: 'localhost'
},
{
displayName: 'Port',
name: 'port',
required: true,
type: 'number' as NodePropertyTypes,
default: 21,
},
{
displayName: 'Username',
name: 'username',
type: 'string' as NodePropertyTypes,
default: '',
},
{
displayName: 'Password',
name: 'password',
type: 'string' as NodePropertyTypes,
typeOptions: {
password: true,
},
default: '',
},
];
}