- New:
GetListingAsyncEnumerablemethod to get file listing usingIAsyncEnumerablepattern - New: During
AutoConnect, throwFtpProtocolUnsupportedExceptionif newer .NET required - Fix: Support connecting to TLS 1.3 servers using
AutoConnect(.NET 5.0+) - Fix: Support automated tests for PureFTP and ProFTP servers (thanks tommysor)
- New:
Clonemethod allows for cloning anFtpClientconnection with all settings copied - New:
InternetProtocolproperty which returns the current protocol used (IPV4/IPV6) - New:
Statusproperty which returns the currentFtpClientStateflags (advanced use only) - Fix:
AutoConnect/AutoConnectAsyncnow correctly configure Azure FTP servers - Internal: Add integration test system using docker to test FluentFTP against many supported FTP servers
- Internal: Refactor server specific, server strings, cloning and auto connection logic into modules
- Fix:
ConnectAsynccorrectly honorsConnectTimeoutandTimeoutExceptionis correctly thrown - Internal: Add unit tests for
Connect/ConnectAsyncto ensureConnectTimeoutis honored - Internal: Refactor internal file listing handlers & proxy implementation (API is unchanged)
- New: Username/password authentication for SOCKS5 proxy connections
- New: Correctly fill in
ConnectionTypefor all proxy types - New: Improved pattern to connect to proxy servers, all details can be specified in
FtpProxyProfile - New: Examples for all types of proxies (
ConnectProxyHttp11,ConnectProxySocks4,ConnectProxySocks4a,ConnectProxySocks5) - Change: Rename class
SocksProxyExceptiontoFtpProxyException - Change: Rename class
ProxyInfotoFtpProxyProfileand rename members
- Change: Rename enum
FtpFileSystemObjectTypetoFtpObjectType - Change: Rename enum
FtpFileSystemObjectSubTypetoFtpObjectSubType - Change: Rename API
UploadtoUploadBytesandUploadStreaminstead of overloading - Change: Rename API
DownloadtoDownloadBytesandDownloadStreaminstead of overloading - Change: Logging will always mask host IP, username and password by default (configurable)
- New: Throw
AggregateExceptionwhen an error occuring during resuming a file upload (.NET 4.5+) - New: Code generation for parsed file item in order to build accurate unit tests
- New: Unit tests for Windows, Unix, OpenVMS, NonStop, IBM, Machine listing parsers
- New: Unit tests for Timezone conversion to UTC and to local time
- Fix: Improvement to directory parsing for Windows, Unix, OpenVMS, NonStop, Machine listings
- Fix: Support parsing of links and Unix-symlinks in Machine listings
- Fix: Enable 2 FTP server specific handlers
- Fix: Error when downloading large files through SOCKS4 or SOCKS4a proxy (thanks fire-lizard)
- Fix: Disable SSL Buffering in .NET 6 as it was in .NET 5
- Major: Added support for SOCKS4 proxy servers using the
FtpClientSocks4Proxyclient class (thanks fire-lizard) - Major: Added support for SOCKS4a proxy servers using the
FtpClientSocks4aProxyclient class (thanks fire-lizard)
- New: Detect Rumpus FTP servers for Mac (allows for future server-specific handling)
- New: Detect ABB IDAL FTP servers (allows for future server-specific handling)
- New: Add
DisconnectWithShutdownproperty to configure shutdown signal on disconnect - Change: Rename
UngracefullDisconnecttoDisconnectWithQuit - Fix: Resolve long timeouts after socket stream disconnected
- Fix: IOException in synchronous methods when AUTH TLS is rejected (thanks yatlor)
- New: Support for .NET 6.0
- Fix: For FileZilla FTP Server, TLS socket would be incorrectly closed (thanks michael-hoedl)
- Fix: For Windows Server IIS, the space at the beginning of the file name is excluded (thanks tYoshiyuki)
- Change: Remove
Obsoletefrom allOpenRead/OpenWrite/OpenAppendAPI as it is not planned for deletion - Fix: Calculate checksum for files with whitespaces in their name (thanks simonefil)
- Fix: z/OS:
GetListing: Handle large file sizes reported in Used column (thanks FanDjango) - Fix: z/OS:
IsRootimproved to handle Unix realm as well (thanks FanDjango) - Fix:
DownloadFilecorrectly handles connection interruptions and resumes partially downloaded files (thanks FanDjango)
- Fix:
SetWorkingDirectoryAsyncdoesn't set working directory due to missing cache invalidation (thanks FanDjango) - Fix: Handle multiline
FEATreplies to support ProFTPD capability reporting (thanks FanDjango) - Fix: Correctly disposes
CancellationTokenSourcecreated duringConnectAsync(thanks jnyrup) - Fix: Printing of error messages in some
ArgumentNullExceptionandArgumentOutOfRangeException(thanks jnyrup) - Fix: Wrong file parser being selected for servers: NonStop/Tandem, OpenVMS, Windows CE, IIS (thanks jnyrup)
- Performance: Improve performance of async methods that return constant values (thanks jnyrup)
- New: Detect Titan FTP servers (allows for future server-specific handling)
- Fix: Validation of short CRC checksum fails due to mismatch of hex hash format
- Change: Remove redundant and extranous
OpenRead/OpenWrite/OpenAppendAPI and keep only 2 methods each - Change: Mark
OpenRead/OpenWrite/OpenAppendAPI as obsolete with warnings and recommend high level API - Change: Cleanup dependencies for netstandard2.0, netstandard2.1 and net5.0 targets (thanks jnyrup)
- Change: Restore the older
OpenReadAPI to prevent breaking older projects that depend on it (thanks FanDjango)
- New:
GetZOSFileSizeis now removed and superceeded byGetFileSizewhich handles z/OS servers - New: Refactor and cleanup z/OS specific logic for: post-connect init,
IsRoot,GetFileSize - Change:
OpenReadAPI no longer supportscheckIfFileExistsargument (thanks FanDjango) - Fix: z/OS & ASCII transfers: Don't get filesize if filesize already known during downloading (thanks FanDjango)
- Fix: z/OS
UploadFilesAsync: Fixed IBM MVS File uploading path calculation (thanks FanDjango) - Fix: Close underlying FTP socket connection on async cancellation on .NET Core (thanks datvm)
- Fix: Correctly handle FTP connection timeout on .NET Core (thanks datvm)
- Fix: Enable detection of IBM OS/400 servers that were disabled during server-specific handling
- New: Detect PyFtpdLib FTP servers (allows for future server-specific handling)
- Fix: Pass CancellationToken to all methods that support cancellation (thanks 0xced)
- Fix: Error check on z/OS init commands to ensure they executed correctly (thanks FanDjango)
- Fix: Improve
FileExistsfor z/OS: better no SIZE, no MDTM on non HFS files (thanks FanDjango) - Fix:
DownloadFilefor z/OS:SetDataTypedirectly before theRETRcommand (thanks FanDjango) - Fix:
IsAuthenticatedis not updated when callingConnectAsync(thanks datvm) - Fix: Reduce number of times
SetDataTypeis called internally to improve performance (thanks FanDjango) - Fix: Fail to detect z/OS server if
Unixis also mentioned in welcome message (thanks FanDjango)
- Fix: z/OS GetFileSize: Ignore SIZE capability even if advertised by server as pointless (thanks FanDjango)
- Fix: z/OS DownloadFile: Read to end of stream because filesize is always inaccurate (thanks FanDjango)
- Fix: z/OS DownloadFile: Fix check for infinity or NaN progress values (thanks FanDjango)
- Fix: z/OS GetListing: Path can be null causing an exception (thanks FanDjango)
- Fix: z/OS GetListing: Large files overflow on size calculation resulting in negative file sizes (thanks FanDjango)
- Fix: z/OS GetListing: Listing fails unless users
CWDto the correct folder of a non-RECFM=UPDS (thanks FanDjango)
- New: Support for connecting to FTP/FTPS servers via a SOCKS5 proxy (thanks bjth)
- New: Autoconfigure IBM z/OS FTP server using
SITE DATASETMODEandQUOTESOVERRIDE(thanks FanDjango) - Fix:
GetListingitemFullnameis now correctly calculated for Unix and z/OS systems (thanks FanDjango)
- New:
GetZOSFileSizeAPIs to get file size of IBM z/OS file system objects (thanks FanDjango) - New:
GetZOSListRealmAPIs to get realm of IBM z/OS servers (thanks FanDjango) - New: Enhance the z/OS listing parser to get LRECL (via XDSS) on behalf of user (thanks FanDjango)
- Fix:
AutoConnectdetects rejected certificates on connection and raisesFtpInvalidCertificateException(thanks FanDjango) - Fix:
FtpListOption.ForceListis not being honored by GetListing and machine listings are used instead (thanks FanDjango) - Fix:
GetListingregression causing many untrue parse fail warnings (thanks FanDjango) - Fix:
GetObjectInfois overwriting Modified date of aFtpListItemif the consecutive MDTM command fails (thanks Dylan-DutchAndBold) - Fix: reusing same FtpClient should reload server capabilities unless its a cloned connection (thanks FanDjango)
- Fix: Executing
CWDusingExecuteAPI does not invalidate internal CWD cache (thanks FanDjango)
- Fix:
UploadFilefails to upload inFtpRemoteExists.Resumemode even if stream is seekable
- Fix:
AutoConnectloads the newly detectedFtpProfileto update properties & encryption - Fix: Passive connections work in
FtpEncryptionMode.Automode and FTPS connection fails
- Fix:
AutoDetectcorrectly recommendsFtpEncryptionMode.Noneif FTPS connection failed - Fix:
AutoDetectcrashes because attempting to read socket type after disconnected
- Major:
AutoDetectdoes not cycle through data connection types during connection as it is irrelevant - Major:
AutoDetectcalculates a data connection type after connection succeeds (EPSV or PASV)
- Fix:
ConnectAsyncnow correctly creates a FTP server-specific handler to matchConnectbehaviour
-
Automatic connection
- Major:
AutoConnecttakes far fewer connection attempts due to improvements in connection handling - Major:
AutoConnectandAutoDetectare much faster and smarter and only try each setting once if possible - Major:
AutoDetectonly tries Explicit and Implicit FTPS once and then falls back to plaintext FTP - Major:
AutoDetectonly tries UTF-8 and never ASCII because most UTF-8 servers don't advertise it - New:
AutoDetectverifies if the server supports UTF-8 and updates theFtpProfileaccordingly - New:
FtpProfilecode generation adds a warning message if the encoding mode is unverified - New:
AutoConnectAsyncnow uses true asynchronous connection backed by newAutoDetectAsync - New:
AutoConnectnow auto computes an FTP port unless a non-standard port is already set - New:
AutoConnectuses the mainFtpClientconnection rather than creating one clone per attempt - Fix:
AutoConnectremains connected to the first working profile rather than connecting twice on success - Fix:
AutoConnectreuses the same connection for FTPS and FTP rather than connecting again - Fix: Ensure FTP server capabilities are loaded during
AutoDetectif original connection is blank - Fix:
AutoConnectandAutoDetectwill now throw exceptions for permanent failures (bad host/credentials) - Fix:
ConnectAsyncnow correctly resets the state flags to matchConnectbehaviour - Fix:
Portnow correctly calculates the default port 21 when usingFtpEncryptionMode.Auto
- Major:
-
Appending and resuming uploads
- Major: The setting
FtpLocalExists.Appendis now renamed toFtpLocalExists.Resume - Major: The setting
FtpRemoteExists.Appendis now renamed toFtpRemoteExists.Resume - Major: Split
FtpRemoteExists.Appendinto two properties with distinct behaviour (ResumeandAddToEnd) - Major: Improvements to
UploadFileandUploadFileAsyncto support appending and resuming of uploads - Major:
UploadFilealways sets the length of the remote file stream before uploading, appending or resuming - Major:
UploadFileskips uploading inResumemode if local and remote file are equal length - Fix: Implementation for resuming uploads using
UploadFilebased on fixes inUploadFileAsync
- Major: The setting
-
Machine listings
- Major:
GetListingprefers using Machine Listings over LIST command, unless a custom list parser is set - Fix:
ListingParserproperty is updated according to auto-detected parser duringConnectandConnectAsync - Fix:
DeleteDirectoryandDereferenceLinkmethods no longer useForceListand so prefer using Machine Listings
- Major:
-
File hashing
- Major: All low-level hash methods are now inaccessible and
GetChecksumis the only recommended approach - Fix:
GetChecksumnow prints function call logs and sanitizes the input path - New:
GetChecksumswitches to the first preferred hash algorithm forHASHcommand if no algorithm is specified - New:
GetChecksumvalidates if the required algorithm is unsupported and throwsFtpHashUnsupportedException - New:
GetChecksumvalidates if hashing is unsupported by the server and throwsFtpHashUnsupportedException - Fix:
GetChecksumAsyncnow takes the cancellation token last to follow conventions (argument reorder) - Fix: Improved extraction of hash checksum when using the HASH command
- Fix: Improved extraction of hash checksum when using the MD5, SHA1, SHA256, SHA512 or X-series commands
- New:
SetHashAlgorithmnow only modifies the hash algorithm if it has changed
- Major: All low-level hash methods are now inaccessible and
-
Path sanitization
- Fix: All high level API methods sanitize input paths to improve robustness
- Fix:
GetWorkingDirectoryalways sanitizes the returned working path directory - Fix: Correctly handle server-specific absolute FTP paths for async operations
- Fix: All function call logs now print the sanitized path rather than raw input path
-
Path improvements
- Major:
GetWorkingDirectoryis now extremely fast and caches the working dir path for subsequent calls - Fix:
FileExistssupports checking name listings for Windows NT servers which use invalid slashes - Fix: Root directory FTP paths no longer return
./and instead return/
- Major:
-
Other improvements
- Major: All legacy asynchronous methods using
IAsyncResultpattern have been removed (outdated since 2012) - Fix: FXP file transfers for glFTPd server always try PASV and CPSV commands to get passive port
- Fix: Add logging for skipped files in
UploadFile - Fix: Add file path details in skipped files logged by
UploadFileandDownloadFile - New:
GetNameListingto print results of name listing as verbose logs, similar toGetListing - New:
GetFileSizeandGetFileSizeAsyncto support a configurable return value if the file does not exist - New:
FtpFolderNameRulenow supportsstartSegmentto skip checking root directory folder names - New:
FtpFolderNameRegexRulenow supportsstartSegmentto skip checking root directory folder names
- Major: All legacy asynchronous methods using
- New: Add support for
IsAuthenticatedproperty which enables detection of FTP connection and authentication - Fix: Improved file path calculation when uploading files to IBM zOS running MVS (thanks arafuls)
- Fix: Detection of file exists for Windows NT Servers fails due to invalid slashes
- Fix: Ensure
CompletionCodeis always null-checked to fix edge cases and comply with existing implementation - Fix: Possible wrong IP when connecting to Azure FTP Server using
EPSVcommand (thanks jsantos74)
- Fix file path calculation when uploading files to IBM zOS running MVS (thanks arafuls)
- Detect fully-qualified directory when using data sets on IBM zOS running MVS (thanks arafuls)
- Major: Refactor and cleanup helpers & extension methods
- Major: Changed namespace of
FtpTracetoFluentFTP.Helpers - Major: Changed namespace of
FtpListParsertoFluentFTP.Helpers - Major: You need to import
FluentFTP.Helpersto gain access to FTP extension methods - Major: Changed visibility of various internal FTP helpers to
internalto prevent external access - New: Ability to set a local IP address to be used for FTP connections (thanks daviddenis-stx)
- New: Properties for local IP:
SocketLocalIp,SocketLocalEndPoint,SocketRemoteEndPoint(thanks daviddenis-stx)
- New: Ability to block certain server ports from being used during passive FTP connection (PASV/EPSV)
- New:
PassiveBlockedPortsandPassiveMaxAttemptsproperties to configure passive blocked ports
- Fix: Add support for another server specific string to detect if file exists
- Fix: Prevent memory leaks with FTPS on AKS by disabling
ValidateCertificateRevocationby default
- Fix:
DownloadFileshould fail if directory path is passed inlocalPath - Fix:
LastReplyis not set when using async methods - Fix: Ambiguous call when using LINQ extension methods and EF core
- Fix: Remove dependency on
System.Linq.Asyncand disableGetListingAsyncEnumerable
- Fix: Use .NET Core API for .NET 5 builds to fix various networking and connectivity issues
- New: Support detection of FRITZ!Box FTP servers (allows for server specific commands)
- Fix: Do not force users to
Connectif capabilities are not loaded (only force ifCapabilitiesare read before connecting)
- Fix: Conditionally hard-abort
AutoConnectonly if the credentials were incorrect
- New:
LogToFileandLogToConsoleare now available on .NET Framework / .NET 5.0 - Fix:
Capabilities&HashAlgorithmsare returned if they are loaded regardless of connection status
- Fix: Prevent
Capabilities&HashAlgorithmsfrom causing sync-over-async path - Fix:
NullReferenceExceptionduringUploadFileif the error message is unknown - Fix: If incorrect credentials are passed to
AutoConnect, it does not hard abort - Fix: Initializing TLS Authentication hangs in .NET 5 if
SslBufferingis enabled
- New: Support for .NET 5.0 platform
- New: Support for
IAsyncEnumerablepattern in .NET Standard 2.0+ and .NET 5.0 (thanks hez2010) - New: Async variant of
GetListingAsyncintroduced:GetListingAsyncEnumerable
- Fix: URI ports not being respected when Uri constructor used (thanks julian94)
- Fix: Respect
332 Need account for loginresponse during FTP client authorization (thanks novak-as) - Fix: Set default value for
restartPositioninDownloadmethod to matchFtpClientmethod (thanks AdamLewisGMSL) - Fix: Improved handling for resuming upload when the connection drops (thanks pradu71)
- Fix: Honor custom parsers if server-specific handler is used
- Fix: Create server-specific handler if a custom handler has not been set (thanks Adhara3)
- New: Reworked timezone conversion API (simply set
TimeConversionandTimeZone) - New: Options to convert server timestamps into the format of your choice (
ServerTime,LocalTimeandUTC) - New: Support for conversion to local timezone in .NET core (set
LocalTimeZone) - New:
GetListinghonors the time conversion settings of the active client - New:
GetModifiedDatehonors the time conversion settings of the active client - New:
SetModifiedDatehonors the time conversion settings of the active client - New: Reworked API for Custom file listing parsers (simply set
ListingCustomParseron the client) - Fix: Drop support for legacy file listing parsing routines (
FtpParser.Legacywill no longer work) - Fix: Unexpected time conversion occuring in
GetModifiedTimeAsync - Change: Breaking changes to the
TimeConversionproperty. - Change: Breaking changes to the
TimeOffsetproperty, which has been replaced byTimeZone
- Fix: "The connection was terminated before a greeting could be read"
- Platform: Add support for .NET Standard 2.1
- Platform: Upgrade
System.Net.Securityfrom version 4.3.0 to 4.3.2 to fix security issues - Performance: Quickly abort detection if host is unavailable during
AutoDetect/AutoConnect - Fix:
UploadDirectoryfails for some files with "Unable to read data from the transport connection" (thanks manuelxmarquez) - Fix: Comment for
UploadFile/UploadFileAsync/DownloadFile/DownloadFileAsyncmethods - Fix: Stack overflow during connection when server responds incorrectly to PASS command
- Fix: Uncatchable NullReferenceException is occasionally thrown from
ConnectAsync
- New: Automatic FTPS connection mode:
FtpEncryptionMode.Autowhich connects in FTP and attempts to upgrade to FTPS - New:
IsEncryptedproperty to check if FTPS encryption is currently active for this connection - Fix:
ValidateCertificateRevocationproperty was not being honored in async version (thanks kolorotur)
- Fix: Ensure file is retried sucessfully when first upload/download fails with an
IOException(thanks manuelxmarquez) - Fix: Ensure file streams read and write correctly even when no
FtpClientis provided (thanks manuelxmarquez) - Fix: Clear custom parser when removing parser or clearing all parsers (thanks rubenhuisman)
- New:
LocalFileBufferSizeproperty to control size of file buffer during local file I/O
- New:
UploadDirectoryDeleteExcludedproperty to control if excluded files are deleted during Upload (thanks philippjenni) - New:
DownloadDirectoryDeleteExcludedproperty to control if excluded files are deleted during Download (thanks philippjenni) - Fix: Dispose AsyncWaitHandles to stop handle leak in .NET Framework 4.5 (thanks sdiaman1)
- Fix: Implement proper cancellation support in
UploadDirectory(once file transfer begins it cannot be cancelled) - Fix: Implement proper cancellation support in
DownloadDirectory(once file transfer begins it cannot be cancelled) - Fix: Implement proper cancellation support in FXP
TransferDirectory - Fix: Implement proper cancellation support in recursive
GetListing - Fix: Correctly resume when unexpectedEOF error received during uploading a file (thanks mrcopperbeard)
- Fix: Hide internal properties in
FtpClientthat are not meant to be exposed - Fix: Update
IFtpClientwith the latest set of public properties that are meant to be exposed
- Fix: Downloading or uploading a directory can generate incorrect local paths
- Fix: Downloading or uploading a directory can generate incorrect local paths
- Fix: Expose
LoadProfileAPI so it can be called by the generated code fromAutoDetect
- New:
ListingDataTypeproperty to get file listings in ASCII/Binary - New:
DownloadZeroByteFilesproperty to control if zero-byte files should be downloaded or skipped - Fix: Downloading 0-byte files crashes since no data downloaded
- New: All server-specific handlers moved to dedicated classes that extend
FtpBaseServer - New: Ability to handle custom non-standard FTP servers by extending
FtpBaseServer - Fix: Only overwrite local file after the first bytes downloaded of a remote file
- New: Tracking progress with FXP transfers is supported for all transfer modes
- New: Track low-level progress with new
TransferredBytesinFtpProgressclass (thanks Adhara3) - New:
FXPProgressIntervalproperty to control how often FXP progress reports are sent - Fix: Hide
TransferFileFXPInternalbecause its an internal transfer method and not to be used directly
- Fix:
FtpFileExtensionRulewas failing to compare extensions unless they were prefixed with a dot
- New:
GetChecksumallows you to specify a hash algorithm to be run on the server if supported - New:
GetChecksumhas special support for switching the server-side algorithm for HASH command support - New: FXP file transfer now validates the file using the first mutually supported algorithm
- Fix: Incorrectly formatted string returned by utility method
TransferSpeedToString
- New:
CompareFileandCompareFileAsyncmethods to quickly perform various equality checks on a uploaded/downloaded file
- Fix: When download fails and we need to retry on failed verification, ensure that file is re-downloaded
- Fix: When FXP transfer fails and we need to retry on failed verification, ensure that file is re-transfered
- Fix: When uploaded file is skipped,
FtpStatus.Failedis returned instead ofFtpStatus.Skipped - Fix: Properly handle 4xx and 5xx series of errors and indicate failure when uploading or downloading files
- Fix: Correctly detect if server-side recursion is supported otherwise fallback to manual directory recursion
- Fix: Only resume download of files if Append mode is selected (in Overwrite mode we restart the download)
- Change:
UploadandUploadAsyncnow returnsFtpStatusto indicate skipped, success or failed
- Fix: Proper session handling for FXP connections and disconnection of cloned connections
- Performance: Reduce redundant file size check in
DownloadFilewhen appending is used
- New:
AutoDetectandAutoConnectnow auto-configure for Azure FTP servers using known connection settings - Improve code generation of
FtpProfileto use LoadProfile rather than setting each property individually - Add advanced Timeout and Socket settings to
FtpProfilefor Azure auto configuration - Fix: All exception classes now inherit from
FtpException - All exceptions and
FtpProfileare now serializable in .NET Framework
- New:
TransferFileandTransferDirectorymethods to transfer files from server to server (thanks n0ix) - New: FXP (File Transfer Protocol) implementation to support direct server-to-server transfers (thanks n0ix)
- New: Predefined rules for filtering on file name using regular expressions (thanks n0ix)
- New: Predefined rules for filtering on folder name using regular expressions (thanks n0ix)
- Fix: Don't calculate ETA and percentage of
FtpProgressif file size is zero (thanks Adhara3) - Fix:
GetFilePermissionsshould useGetObjectInfoinstead ofGetListingto prevent incorrect filepaths
- New: Support for MMD5 file hashing command to validate downloaded/uploaded files. (thanks n0ix)
- Change: Disable all
Begin*andEnd*methods for .NET 4.5 and onwards asasync/awaitis supported. - Improve:
GetHashAlgorithmAsyncandSetHashAlgorithmAsyncimplemented as true async methods with cancellation support - Improve:
GetObjectInfoAsyncimplemented as true async methods with cancellation support
- New: Download and upload file methods indicate if file was transferred, skipped or failed to transfer
- New: C# and VB.NET Examples for all file and folder transfer methods
- New: VB.NET Examples for all methods (not included in Nuget package but available on Github)
- Change:
DownloadFileandUploadFilereturnFtpStatusinstead of boolean flag for tri-state feedback
- New: Support for XCRC FTP Command and CRC32 hash support to validate downloaded/uploaded files (thanks n0ix)
- Fix: Calculation of local file path during DownloadFolder sometimes ignores base directory
- New: Support multi-file progress tracking by indicating file index and local & remote path of the file
- New:
UploadDirectoryandDownloadDirectorynow supports tracking progress of the entire task - New:
UploadFilesandDownloadFilesnow supports tracking progress for both sync/async methods - Fix: Update
IFtpClientinterface by adding newUploadDirectoryandDownloadDirectorymethods - Fix: Correctly determine file exists on servers that don't support SIZE command and return error 550
- Fix: Support more strings to determine if file exists using SIZE command
- New:
UploadDirectoryandUploadDirectoryAsyncmethods to recursively upload or mirror a directory - New:
DownloadDirectoryandDownloadDirectoryAsyncmethods to recursively download or mirror a directory - New: Rule engine to filter files that should be uploaded/downloaded according to multiple user-defined rules
- New: Predefined rules for filtering on folder name, useful for blacklisting certain system folders
- New: Predefined rules for filtering on file name or file extensions, useful for transferring a subset of files
- New: Predefined rules for filtering on file size, useful for filtering out very large files
- New: Ability to determine parent/self/child directories in listing using
SubTypeproperty ofFtpListItem - Fix: Machine listings sometimes cause infinite recursion in
GetListingwhen recursing into self directory - Change:
CreateDirectoryandCreateDirectoryAsyncnow return a flag indicating if it was created or skipped - Change: Use public fields instead of public properties for
FtpListItem - Change: Improve performance of
CreateDirectoryby skipping the directory exists check
- Fix: Detect "file size not allowed in ASCII" string for French FTP servers
- Fix: TimeoutException when trying to read FTP server reply after Download/Upload
- New: Add
SendHostandSendHostDomainto control if HOST command is sent after handshake (thanks dansharpe83)
- Fix: Read stale NOOP responses after file transfer and also after
226 Transfer complete(thanks aliquid) - Fix: Correct default value for
TimeConversionproperty to assume UTC timestamps
- New: Support .NET Standard 2.0
- New: Keep control socket alive during long file transfers using NOOP (thanks aliquid)
- New: Add
NoopIntervalproperty to control interval of NOOP commands (thanks aliquid) - New: Add
TimeConversionproperty to control if timestamps are converted from UTC into local time - Refactor: Rename
FtpExiststoFtpRemoteExiststo make its usage clear - New: Support detection of IBM z/OS and MVS FTP OS and server (allows for server specific commands)
- New: New constructors for
FtpClientto support hostnames inUriformat - Fix: Always send progress reports after file download, even for zero-length files
- New:
ValidateCertificateRevocationproperty to control if certificate revocation is checked.
- New:
ValidateAnyCertificateproperty to validate any received server certificate, useful for Powershell - Fix: Default SSL protocol used in .NET 4.5+ release is now TLS 1.2 (latest supported protocol)
- New: Override the server-specific recursive LIST detection by setting
RecursiveList - Fix typo in IP parsing regex that causes fallback to Host IP to fail (thanks Andy Whitfield)
- Fix: Verification of the MD5 Hash when file name contains spaces (thanks Nimelo)
- Fix: Safely absorb TimeoutException thrown after the file has fully uploaded/downloaded
- New: Progress reporting for synchronous methods
Upload,Download,UploadFileandDownloadFileare now sent via delegates - Fix: Correctly send progress for synchronous methods and retain
IProgressfor async methods
- Fix: Correctly assume Unix file listing parser for SunOS & Solaris servers
- Fix: Safely absorb TimeoutException thrown after the file has fully uploaded/downloaded
- New: Support detection of Sun OS Solaris FTP OS and server (allows for server specific commands)
- Fix: UploadFile fails when destination folder is empty on SunOS (550 error)
- Fix: Unable to upload files to OpenVMS servers if path contains numeric characters
- Fix: Assume FTP commands supported by OpenVMS HGFTP server if FEAT not supported
- FiX: Improve detection of OpenVMS absolute paths
- Fix:
Connect&ConnectAsyncthrow ArgumentException when passing an incompleteFtpProfile
- New: Auto-detect the correct FTP listing parser when SYST command fails (IIS, Azure, OpenVMS)
- New: Assume FTP commands supported by OpenVMS HGFTP server
- FiX: Support edge case for OpenVMS absolute paths (directive can be alpha-numeric)
- New: Improved transfer rate throttling when using an upload/download speed limit (thanks wakabayashik)
- New: Support detection of XLight FTP server software (allows for server specific commands)
- New: Partial support for getting directory listing using STAT command (
GetListingsupports newFtpListOption.UseStat) - Fix:
GetFileSizealways returns 0 instead of correct file size (thanks RadiatorTwo)
- Fix:
FileExistsandFileExistsAsyncsupport switching to binary mode for servers that need it
- Fix: Error using BlueCoat proxy to an FTP server on a port other than port 21
- Fix: Error using UserAtHost proxy to an FTP server on a port other than port 21
- New: Change
CapabilityAPI to return a list instead of bitwise enum (to support more than 32 distinct capabilities) - New: Change custom parsers to take capabilities as a list instead of bitwise enum (to match client implementation)
- New: Support detection of FTP2S3 gateway server software (allows for server specific commands)
- New: Support detection of server-specific capabilities of Serv-U FTP Gateway
- New: Support
RMDAcommand to quickly and recursively delete a directory from Serv-U FTP Gateway
- Fix: Improve performance of
GetFileSizeto only switch to Binary for servers that require it - Fix: Ensure data type (ASCII/Binary) is correctly set during
GetFileSizefor servers that require it - Fix: Ensure data type (ASCII/Binary) is correctly set for cloned connections
- Fix: Ensure data type (ASCII/Binary) is correctly set during
GetListingandGetNameListing - Fix: Reset server detection state flags whenever we connect to a server, to allow for reuse of
FtpClient - Fix: Copy server detection state flags to cloned connections to improve performance
- Fix: Retry
GetListingif temporary error "Received an unexpected EOF or 0 bytes from the transport stream"
- Fix: Prefer using Passive/Active modes rather than Enhanced Active/Passive during auto-detection
- Fix: Some FTP servers do not open a port when listing an empty folder with
GetNameListing - Fix: Hard catch and suppress all exceptions during disposing to solve all random exceptions
- New: Automatic FTP connection negotiation using
AutoConnect() - New: Automatic detection of working FTP connection settings using
AutoDetect() - New: C# code generation of working connection settings using
FtpProfile.ToCode() - New: Support more capability detection commands: EPSV, CPSV, NOOP, CLNT, SSCN, SITE commands for ProFTPd
- New: Improve transfer performance by only attempting EPSV once and then never using it again for that connection
- New: Support MKDIR & RMDIR commands specially for ProFTPd to quickly create and delete a directory on the server-side
- New: Support PRET command before downloading or uploading files for servers like ProFTPd & DrFTPd
- New: Support detection of BFTPd server software (allows for server specific commands)
- Fix: When uploading files in
FtpExists.NoCheckmode, file size check should not be done - Fix: Some FTP servers do not open a port when listing an empty folder (thanks Mortens4444)
- Fix:
OpenReadwithEnableThreadSafeDataConnectionsalways transfers in ASCII (thanks ts678) - Refactor: Delete legacy static methods:
OpenRead,OpenWrite,OpenAppend(dynamic versions still exist) - Refactor: Move
CalcChmodfromFtpClienttoFtpExtensions(as part of repository cleanup task)
- Fix: Async methods do not work with Active FTP mode and SSL/encryption (thanks Mortens4444)
- Fix: For OpenVMS absolute paths may not contain slashes but are still absolute (3rd revision)
- Fix: Divide-by-zero exceptions while calculating progress of file uploads/downloads
- Fix: Supress all exceptions when Disposing the underlying FtpSocketStream
- Fix: Received an unexpected EOF or 0 bytes from the transport stream (thanks mikemeinz)
- Fix:
UploadFile()progress callback is not called if the file already exists on the server - (.NET core) Fix:
Connect()method sometimes causes the thread to hang indefinitely (thanks radiy) - Fix: Regression of #288 where upload hangs with only a few bytes left (thanks cw-andrews)
- New:
FtpAuthenticationExceptionfor authentication errors (thanks erik-wramner) - New: Added support to detect Homegate FTP Server
- New: SSL Buffering is now switchable via the
SslBufferingparameter - Fix: SSL Buffering is automatically disabled when using FTP proxies, and enabled in all other cases
- Fix: Revert PR #383 as it was causing regression issues in SSL connectivity
- Fix: Disable automatic IP correction to fix connectivity issues via BlueCoat proxy servers (thanks CMIGIT)
- Refactor: Rename
FtpClientUserAtHostProxyBlueCoattoFtpClientBlueCoatProxy - Fix: For OpenVMS absolute paths may not contain slashes but are still absolute (2nd revision) (thanks tonyhawe)
- Fix: Detect file existence string
"Can't find file"to fix FileExists check on some servers (thanks reureu) - Fix: Feature parity between
FileExistsandFileExistsAsyncmethods, added support for FtpReply 550 check (thanks reureu) - Fix: Feature parity between
UploadFileandUploadFileAsyncmethods, added support for AppendNoCheck handling (thanks reureu)
- New: Get detailed progress information for uploads/downloads via the
FtpProgressobject (thanks n0ix) - New: Get transfer speed and ETA (estimated time of arrival) for uploads/downloads (thanks n0ix)
- Fix: Files were uploaded in Write mode instead of Append mode when the exists mode is
AppendNoCheckand we couldn't read the offset position (thanks @everbalovas) - Fix: Swap
SslStreamandBufferedStreamso proxied connections withFtpClientHttp11Proxyare to connect (thanks @rmja)
- New: Additional FTP Server software detection (HP NonStop/Tandem, GlobalScape EFT, Serv-U, Cerberus, CrushFTP, glFTPd)
- New: Assume capabilities for servers that don't support FEAT (wuFTPd)
- Fix:
FileExistsreturns false if name listing is used and server lists filenames with the path - Fix: For OpenVMS absolute paths may not contain slashes but are still absolute
- Fix: For
Download()methodsrestartPositionshould not be mandatory
- New: Ability to cancel all async methods via
CancellationToken(thanks WolfspiritM) - New:
ReadTimeoutis now honored by all async methods (thanks WolfspiritM) - New: FTP Server operating system detection (Windows, Unix, VMS, IBM/OS400)
- (.NET core) Fix: GetListing blocking with no timeout (thanks WolfspiritM)
- (.NET core) Fix async methods by not using the the async read function (thanks WolfspiritM)
- New: Ability to resume a download via
existsModeonDownloadFile()andDownloadFiles()(thanks n0ix) - New: Ability to turn off checking for server capabilities using FEAT command (thanks nhh-softwarehuset)
- Fix: Add workaround if a server advertises a non-routeable IP in PASV Mode (thanks n0ix)
- Fix: Recursive directory deletion tries to delete the same file twice (because GetListing is also recursive)
- New:
OnLogEventcallback to get logs in the context of indivivdual FtpClient connections - Fix: All logging is done in the context of an
FtpClientand then passed toFtpTracelisteners - Signature for custom list parsers has changed,
FtpClientargument added to the end
- New: FTP Server software detection (PureFTPd, VsFTPd, ProFTPD, FileZilla, OpenVMS, WindowsCE, WuFTPd)
- New: Detect if the FTP server supports recursive file listing (LIST -R) command using whitelist
- New:
GetListingwill manually recurse through directories ifFtpListOption.Recursiveis set and server does not support recursion - New: Added
LastReplyproperty which returns the lastFtpReplyrecieved from the server. - New: Added new upload option
AppendNoCheckto append to a file on the server without checking if it exists (thanks @everbalovas) - Fix: During upload, respond to any error in 5xx series, not just 550 (thanks stengnath)
- Fix: Various fixes to
UploadFileAsyncbased on fixes already implemented inUploadFile
- Fix:
UploadFilesAsyncwitherrorHandlingdeletes the entire directory instead of specific files - Fix: Server responds to EPSV with 425 "Data connection failed" but connects with PASV (thanks ejohnsonTKTNET)
- Fix: Use proper async configuration for .NET Async methods (thanks ejohnsonTKTNET)
- Fix: Improve implementation of upload and download resuming in Async methods (thanks ejohnsonTKTNET)
- Fix:
UploadFile()orUploadFiles()sometimes fails to create the remote directory if it doesn't exist - Fix:
DownloadDataTypeBinary value ignored on ASCII-configured FTP servers - Performance improvement: Added
BufferedStreambetweenSslStreamandNetworkStream(thanks stengnath) - Fix: When the FTP server sends 550, transfer is received but not confirmed (thanks stengnath)
- Fix: Make
Disposemethod ofFTPClientvirtual (thanks @martinbu) - Fix:
OpenPassiveDataStream/Async()uses the target FTP host instead of the configured proxy (thanks @rmja) - Fix:
FileExists()for Xlight FTP Server (thanks @oldpepper) - Fix: FTPD "550 No files found" when folder exists but is empty, only in PASV mode (thanks stengnath)
- Fix: Many unexpected EOF for remote file
IOExceptionon Android (thanks @jersiovic) - Fix: Race condition when
BeginInvokecalls the callback before theIAsyncResultis added (thanks stengnath)
- Fix: Prevent socket poll from hammering the server multiple times per second
- Fix: Allow using absolute paths that include drive letters (Windows servers)
- Performance improvement: Only change the FTP data type if different from required type
- Performance improvement: Download all files in EOF mode and skip the file size check, unless download progress is required
- Added all missing async versions of FTP methods to
IFtpClient - System: Certain core FTP socket handling operations have been changed to improve reliability & performance.
- Fix: Fix hang in TLS activation because no timeout is set on the underlying
NetworkStream(thanks @iamjay)
- Added async versions of FTP methods to
IFtpClient(thanks @peterfortuin) - Fix: Fixes when
ActivePortsis specified in active FTP mode (thanks @ToniMontana) - Fix: Throw
OperationCanceledExceptioninstead ofFtpExceptionwhen cancellation is requested (thanks taoyouh)
- Fix: Add support for checking if file exists on Serv-U FTP Server
- Fix: Make
IFtpClientinherit fromIDisposable(thanks @repl-andrew-ovens) - (UWP) Fix: UWP does not allow
File.Exists()to run in UI thread (thanks taoyouh)
- Fix: When downloading files in ASCII mode, file length is unreliable therefore we read until EOF
- Fix: When upload/download progress is indeterminate, send -1 instead of NaN or Infinity
- Fix:
NetStreamwas not assigned inFtpSocketStreamfor .NET Standard in active FTP mode (thanks @ralftar) - Fix:
CurrentDataTypewas not set for ASCII transfers inDownloadFileAsync/UploadFileAsync(thanks taoyouh) - Fix: Sometimes
FtpSocketStreamandFtpDataStreamare not disposed inFtpSocketStream.Dispose(thanks taoyouh)
- New Progress reporting for
UploadFile&DownloadFilemethods viaIProgress - Fix:
Stream.Positionshould not be set inUploadFileInternalunless supported
- New Task-based async methods for .NET Standard and .NET Fx 4.5 (thanks taoyouh)
- New async methods for
UploadFile,DownloadFile,UploadFiles&DownloadFiles(thanks artiomchi) - (UWP) Fix:
FileNotFoundExceptionwith referenceSystem.Console(thanks artiomchi) - (.NET core) Fix: Thread suspends when calling
UploadFileorDownloadFile(thanks artiomchi) - (.NET core) Fix: File download hangs inconsistently when reading data from stream (thanks @artiomchi, bgroenks96)
- (.NET core) Fix: Stream does not dispose due to wrong handling of closing/disposing (thanks artiomchi)
- Fix: File upload EOS bug when calling
Stream.Read(thanks bgroenks96, @artiomchi, @taoyouh) - Fix:
DownloadFileInternalnot recognizing the download data type withEnableThreadSafeConnections(thanks bgroenks96) - (Backend) Migrate to a single VS 2017 solution for all frameworks (thanks artiomchi)
- (Backend) Continuous Integration using AppVeyor (thanks artiomchi)
- Add
IFtpClientinterface to build unit tests upon mainFtpClientclass (thanks Kris0) - Disposing
FtpDataStreamreads server reply and closes the underlying stream (thanks Lukazoid)
- New
SetModifiedTimeAPI to change modified date of a server file in local timezone/UTC - Add type argument to
GetModifiedTime, allowing for getting dates in UTC/Local timezone - Breaking changes to Async API of
GetModifiedTime(addition of type argument) GetModifiedTimeandSetModifiedTimenow honor theTimeOffsetproperty inFtpClient- Add
checkIfFileExiststoOpenRead,OpenAppendandOpenWriteto skipGetFileSizecheck - Fix issue where
InnerExceptionis null during a file transfer (upload/download) - Improve performance of typical uploads/downloads by skipping the extra file exists check
- Fix for
CreateDirectoryandDirectoryExiststo allow null/blank input path values - Fix for
GetFtpDirectoryNameto return correct parent folder of simple folder paths (thanks ww898)
- Add argument validation for missing/blank arguments in :
Upload, Download, UploadFile(s), DownloadFile(s), GetObjectInfo, DeleteFile, DeleteDirectory, FileExists, DirectoryExists, CreateDirectory, Rename, MoveFile, MoveDirectory, SetFilePermissions, Chmod, GetFilePermissions, GetChmod, GetFileSize, GetModifiedTime, VerifyTransfer, OpenRead, OpenWrite, OpenAppend - Disable all async methods on .NET core due to persistant
PlatformUnsupportedexception (if you need async you are free to contribute a non-blocking version of the methods)
- Increase performance of
GetListingby reading multiple lines at once (BulkListing property, thanks sierrodc)
- Add support for parsing AS400 listings inside a file (5 fields) (thanks rharrisxtheta)
- Retry interpreting file listings after encountered invalid date format (thanks rharrisxtheta)
- Always switch into binary mode when running SIZE command (thanks rharrisxtheta)
- Honor
UploadDataTypeandDownloadDataTypein all sync/async cases (thanks rharrisxtheta) - Force file transfers in BINARY mode for known 0 byte files (thanks rharrisxtheta)
- Allow file transfers in ASCII mode if the server doesn't support the SIZE command (thanks rharrisxtheta)
- Fix
NullReferenceExceptionwhen arguments are null duringFtpTrace.WriteFunc
- Remove internal locking for .NET Standard 1.4 version since unsupported on UWP
- Remove dependency on
System.Threading.Threadfor .NET Standard 1.4 version (for UWP)
- Allow transferring files in ASCII/Binary mode with the high-level API (UploadDataType, DownloadDataType)
- Add support for .NET 3.5 and .NET Standard 1.4 (supports Universal Windows Platform 10.0)
- Add
FtpTrace.LogToConsoleandLogToFileto control logging in .NET core version
- Add
PlainTextEncryptionAPI to support FTPS servers and plain-text FTP firewalls (CCC command) - FluentFTP now uses unsafe code to support the CCC command (inside
FtpSslStream) - If you need a "non unsafe" version of the library please add an issue
- Add logging for high-level function calls to improve remote debugging (
FtpTrace.LogFunctions) - Add settings to hide sensitive data from logs (
FtpTrace.LogIP,LogUserName,LogPassword) - Add
RecursiveListto control if recursive listing should be used - Auto-detect Windows CE and disable recursive listing during
DeleteDirectory()
- Add
UploadRateLimitandDownloadRateLimitto control the speed of data transfer (thanks Danie-Brink)
- Fix parsing of
LinkTargetduringGetListing()on Unix FTP servers - Improve logging clarity by removing "FluentFTP" prefix in TraceSource
- Add
MoveFile()andMoveDirectory()to move files and directories safely
- Automatically verify checksum of a file after upload/download (thanks jblacker)
- Configurable error handling (abort/throw/ignore) for file transfers (thanks jblacker)
- Multiple log levels for tracing/logging debug output in
FtpTrace(thanks jblacker)
- Simplify
DeleteDirectory()API - theforceandfastModeargs are no longer required DeleteDirectory()is faster since it uses one recursive file listing instead of many- Remove .NET Standard 1.4 to improve nuget update reliability, since we need 1.6 anyway
- Split stream API into
Upload()/UploadFile()andDownload()/DownloadFile()
- Greatly improve performance of
FileExists()andGetNameListing() - Add new OS-specific directory listing parsers to
GetListing()andGetObjectInfo() - Support
GetObjectInfo()even if machine listings are not supported by the server - Add
existsModetoUploadFile()andUploadFiles()allowing for skip/overwrite and append - Remove all usages of string.Format to fix reliability issues caused with UTF filenames
- Fix issue of broken files when uploading/downloading through a proxy (thanks Zoltan666)
GetReply()is now public so users ofOpenRead/OpenAppend/OpenWritecan call it after
- Add async/await support to all methods for .NET 4.5 and onwards (thanks jblacker)
- Support for .NET Standard 1.4 added.
- Add
UploadFiles()andDownloadFiles()which is faster than single file transfers - Allow disabling UTF mode using DisableUTF8 API
- First .NET Core release (DNXCore5.0) using Visual Studio 2017 project and shared codebase.
- Support for .NET 2.0 also added with shims for LINQ commands needed.
- Add
FtpListOption.IncludeSelfAndParenttoGetListing
- Use streams during upload/download of files to improve performance with large files
- Support for uploading/downloading to Streams and byte[] with
UploadFile()andDownloadFile()
- Added high-level
UploadFile()andDownloadFile()API. Fixed some race conditions.
- Added support for FTP proxies using HTTP 1.1 and User@Host modes. (thanks L3Z4)