Swift
FTP Examples for Swift
Connecting, Passive Mode and Server Settings
- Active and Passive Modes in FTP
- Passive FTP Download
- Passive FTP Upload
- PassiveUseHostAddr
- ConnectFailReason
- DetermineSettings
- Automatically Determine FTP Proxy Method
- Determine if Connected and Logged On
- FTP FEAT Command
- Quote and SendCommand
- Binary and ASCII FTP Transfer Modes
- CRLF Mode
FTP over SSL/TLS (FTPS)
- FTP using Explicit SSL/TLS (AUTH TLS, AUTH SSL, FTPES)
- Use Explicit FTP over TLS
- FTP/SSL (AUTH SSL, TLS)
- FTPS / Implicit SSL
- FTP Enable TLS 1.3
- Verify FTP SSL Server Certificate
- FTP Connect, Examine Server Certificate, and then Authenticate
- Secure FTP with Client Certificate
- FTPS with Mutual TLS Authentication (TLS Client Certificate)
- Using WS_FTP Self-signed Certificate file (.crt) and Private Key File. (.key)
- Inovis VAN FTP/SSL (EDI)
- Upload to Tumbleweed SecureTransport FTPS Server
Proxies and Tunnels
- SOCKS4 and SOCKS5 Proxy for FTP
- FTP through SSH Tunnel
- FTP through SSH Tunnel with Dynamic Port Forwarding
- FTP through HTTP Tunnel
Uploading
- Simple FTP Upload
- Save String Variable to File on FTP Server
- Upload Multiple Files Matching Pattern
- FTP Large File Upload
- Restart/Resume FTP Upload
- Append to Existing File on FTP Server
- FTP Upload with Progress Event Callbacks
- FTP Bandwidth Throttle for Upload
Downloading
- Simple FTP Download
- Download Text File into String Variable
- Download Multiple Files Matching Pattern
- Restart/Resume FTP Download
- FTP Download Text File to a Stream
- FTP Download Binary File to a Stream
- FTP Download with Progress Event Callbacks
- FTP Bandwidth Throttle for Downloads
Directories and Listings
- Change Current Directory
- Create Directory on FTP Server
- Directory Existence Check
- Remove Directory
- Get FTP Directory Listing Information
- Download Directory Tree Listing as XML
- Get FTP Directory Listing as XML
- Get Number of FIles in Directory, not including sub-directories
- FTP Iterate over Files in Directory Matching ListPattern
Remote File Operations
- File Existence Check
- Delete Remote File
- Delete Files Matching Pattern
- Rename Remote File
- Move File to Another Directory on Server
- chmod (Setting File Permissions)
- Get FTP File Permissions
- FTP XCRC
- FTP Set Remote File Date/Time Equal to Local File's Last-Modified Date/Time
Directory Trees and Synchronization
- Upload Directory Tree
- Upload Directory Tree using a Plan
- Download Directory Tree
- Delete FTP Directory Tree
- Synchronize Local Directory Tree
- Synchronize Remote Directory Tree
- Delete Local Files that Do Not Exist on the FTP Server
- FTP Sync Download Tree w/ Must-Match Constraints
- FTP Sync Download Tree w/ Must-Match Directory Constraints
- FTP Sync Upload Tree w/ Must-Match Filename Constraints
Progress, Logging and Debugging
- Async FTP Progress Info
- Using the FTP Session Log
- Ftp2 Debug Log File Path