Functions Importer ParseImporter StreamImporter FilesImporter FTPImporter - SmartEnviroSystem/SmartDataPorter GitHub Wiki
The FTP importer is used to import files from an FTP server.
Configuration
These configurartion options must be added additional to those from general import options, FilesImporter and ParseImporter.
| Parameter | Description | Default | Optional |
|---|---|---|---|
| ftp_host | FTP Servers host address | - | no |
| ftp_dir | FTP directory containing the importable files | - | no |
| ftp_user | FTP user name | - | yes |
| ftp_pwd | FTP usr password | - | yes |
{
// General import options
"server": "http://localhost:8080",
"smartdata": "SmartDataTest",
"storage": "test",
"collection": "importtable",
// Importer options
"importer": "FTPImporter",
"ftp_host": "ftp://files.example.com",
"ftp_dir": "/files/to/import",
// Parser options
"parser": "ExampleParser"
}