Skip to content

Enums and XML types ​

All enums and types below are exported by @jalsoedesign/filezilla-core. Protocol IDs represent saved FileZilla values. Changing existing numeric IDs would reinterpret saved sites.

ServerProtocol ​

IDNameConnector
-1UNKNOWNNone
0FTPExplicit FTPS
1SFTPSFTP
2HTTPNone
3FTPSImplicit FTPS
4FTPESExplicit FTPS
5HTTPSNone
6INSECURE_FTPPlain FTP
7S3None
8STORJNone
9WEBDAVNone
10AZURE_FILENone
11AZURE_BLOBNone
12SWIFTNone
13GOOGLE_CLOUDNone
14GOOGLE_DRIVENone
15DROPBOXNone
16ONEDRIVENone
17B2None
18BOXNone
19INSECURE_WEBDAVNone
20RACKSPACENone
21STORJ_GRANTNone
22S3_SSONone
23GOOGLE_CLOUD_SVC_ACCNone
24CLOUDFLARE_R2None

MAX_VALUE remains an alias of CLOUDFLARE_R2 to preserve existing numeric values. Use server.siteProtocolName for display: it deliberately excludes the sentinel and returns CLOUDFLARE_R2 for ID 24. Raw numeric-enum reverse lookup still reflects TypeScript's alias behavior.

ServerType ​

ServerType identifies the saved path dialect. It is separate from ServerProtocol, which identifies FTP, SFTP and other protocols. These are the compatibility IDs exported by this reader:

IDMemberRemote-directory decoder
0DEFAULTSupported with no prefix
1UNIXSupported with no prefix
2VMSUnsupported
3DOSUnsupported; native dialect prefers backslashes
4MVSUnsupported
5VXWORKSUnsupported
6ZVMUnsupported
7HPNONSTOPUnsupported
8DOS_VIRTUALSupported with no prefix
9CYGWINSupported with no prefix
10DOS_FWD_SLASHESUnsupported; native dialect prefers forward slashes
11SERVERTYPE_MAXSentinel, not a saved path type

See the exported enum source, the annotated native path example and the decoder's grammar. FileZilla defines its native path types in src/include/server.h; the official upstream source is the starting point for those definitions. The table above specifies this library's compatibility values and decoding support.

LogonType ​

LogonType describes the saved authentication mode. It does not guarantee that credentials are available to the reader.

IDMemberMeaning
0anonymousAnonymous login
1normalUsername/password login
2askPrompt for credentials in the native UI
3interactiveInteractive authentication
4accountAccount-based login
5keyPrivate-key login; Keyfile supplies the saved host-side key path
6profileS3 profile
7adcGoogle Cloud Application Default Credentials
8countSentinel

See the exported enum source and credential loading for the distinction between saved authentication metadata and supported secret access.

Normalized authentication and execution ​

Saved modePortline authenticationShared execution requirement
anonymousanonymousFTP only; SFTP/SSH rejects anonymous login
normalpassword with a credential referenceResolve the selected saved password or supply a runtime password/provider
askprompt-password with a credential referenceSupply an available password, promptPassword or another supported explicit authentication selection
interactiveinteractiveSSH/SFTP requires a keyboardInteractive handler; FTP refuses this mode
keyprivate-key with a path and separate passphrase referenceResolve the saved key path/passphrase or supply an explicit runtime selection; SSH commands require a key file path
account, profile, adc, unknown valuesunsupported with the native typePreserved for inspection; execution is refused

Account-based FTP is not silently treated as ordinary password login. The reader distinguishes a key passphrase from a password, and password prompting from keyboard-interactive challenges. See SSH credentials and trust and the shared bridge options.

Other enums ​

EnumMembers in numeric order, starting at zero
PasvModeMODE_DEFAULT, MODE_ACTIVE, MODE_PASSIVE
CharsetEncodingENCODING_UTF8, ENCODING_CUSTOM, ENCODING_AUTO
ServerFormatHOST_ONLY, WITH_OPTIONAL_PORT, WITH_USER_AND_OPTIONAL_PORT, URL, URL_WITH_PASSWORD

count and SERVERTYPE_MAX are sentinels. ServerFormat is exported metadata; the library currently has no corresponding formatter implementation.

XML object types ​

XmlConfig contains FileZilla3: XmlRootFolderConfig; that root contains Servers: XmlFolderConfig. Folder types contain Server, Folder, and optional '#text' for their name. The public constructor supports singleton or array child fields, including mixed nested forms.

XmlServerConfig describes FileZilla's field names: Host, Port, Protocol, Type, User, Pass, Logontype, TimezoneOffset, PasvMode, MaximumMultipleConnections, EncodingType, CustomEncoding, BypassProxy, Name, Comments, LocalDir, RemoteDir, SyncBrowsing, DirectoryComparison, Keyfile.

Pass and Name may be text or an object with '#text' and '@_encoding'. XML parsing disables primitive value coercion and global trimming; the reader validates and normalizes supported fields deliberately. Type declarations alone are not validation for arbitrary direct Server or connector configuration objects.