Skip to content

Releases: patrickjuchli/basic-ftp

4.3.2

27 Oct 11:09
Compare
Choose a tag to compare
  • Fixed regression at 4.3.0: File descriptor closed too early. (#103)

4.3.1

22 Oct 20:34
Compare
Choose a tag to compare
  • Fixed: When downloading to a local file and an error occurs, only remove it if no data has been downloaded so far.

4.3.0

19 Oct 11:49
Compare
Choose a tag to compare
  • Added: More explicit API uploadFrom, appendFrom and downloadTo. upload and download are still available but deprecated.
  • Added: Handle file downloads and uploads directly by supporting local file paths in uploadFrom and downloadTo.
  • Added: Make it easier to resume a download of a partially downloaded file. See documentation of downloadTo for more details.

4.2.1

17 Oct 13:27
Compare
Choose a tag to compare
  • Fixed: Don't rely on MLSD types 'cdir' and 'pdir', consider names as well. (#99)

4.2.0

13 Oct 20:29
Compare
Choose a tag to compare
  • Added: Support uploading a local directory to any specific remote directory instead of just the working directory.

4.1.0

09 Oct 12:48
Compare
Choose a tag to compare
  • Added: Support symbolic links in MLSD listings.

4.0.2

26 Sep 06:37
Compare
Choose a tag to compare
  • Fixed: Make MLSD listing detection more general. (#95)
  • Fixed: Handle MLSD facts 'sizd', 'UNIX.gid' and 'UNIX.uid'. (#95)

4.0.1

18 Sep 07:47
Compare
Choose a tag to compare
  • Fixed: Describe client as closed before first connection (#94)

4.0.0

13 Sep 04:57
Compare
Choose a tag to compare

This release contains the following breaking changes:

  • Changed: The permissions property of FileInfo is now undefined if no Unix permissions are present. This is the case if for example the FTP server does not actually run on Unix. Before, permissions would have been set to 000. If permissions are present there is a good chance that a command like SITE CHMOD will work for the current server.
  • Changed: MLSD is now the default directory listing command. If the connected server doesn't support it, the library will continue using the LIST command. This might have an impact on reported permissions for a file. It is possible although rare that a server running on Unix would have reported permissions with LIST but doesn't do so with MLSD.
  • Changed: If you've been parsing date of FileInfo, you might have to consider a new ISO format coming with MLSD listings, e.g. 2018-10-25T12:04:59.000Z. Better yet, use the parsed date directly with modifiedAt and only use date if it is undefined. Be aware that parsing dates reported by the LIST command is likely unreliable.

Non-breaking changes:

  • Added: Support for MLSD directory listing. This is a machine-readable directory listing format that provides modification dates that can be reliably parsed. Listings by the older command LIST have not been designed to be machine-readable and are notoriously hard to parse.
  • Added: The property modifiedAt of FileInfo may hold a parsed date if the FTP server supports the MLSD command. Note that the property date is not parsed but only a human-readable string coming directly from the original listing response.
  • Added: New API sendIgnoringError to send an FTP command and ignoring a resulting FTP error. Using the boolean flag as the second argument of send has been deprecated.
  • Added: Sending OPTS UTF8 ON when accessing a server.

3.8.2

28 Aug 19:37
Compare
Choose a tag to compare
  • Fixed: Fall back to LIST command if LIST -a is not supported. (#91)