This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
The following commit(s) were added to refs/heads/master by this push: new c67a5ad Make better use of Commons Net API. c67a5ad is described below commit c67a5ade862c8b42c94fc26a2084f6b77f9cbbf2 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Feb 19 17:01:54 2021 -0500 Make better use of Commons Net API. --- .../java/org/apache/commons/vfs2/provider/ftp/FTPClientWrapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FTPClientWrapper.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FTPClientWrapper.java index 10cf7c1..0fb5c42 100644 --- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FTPClientWrapper.java +++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FTPClientWrapper.java @@ -236,10 +236,10 @@ public class FTPClientWrapper implements FtpClient { @Override public Instant mdtmInstant(final String relPath) throws IOException { try { - return getFtpClient().mdtmFile(relPath).getTimestamp().toInstant(); + return getFtpClient().mdtmCalendar(relPath).toInstant(); } catch (final IOException ex) { disconnect(); - return getFtpClient().mdtmFile(relPath).getTimestamp().toInstant(); + return getFtpClient().mdtmCalendar(relPath).toInstant(); } }