From 6e083d7a9783355cc10c8e3d3683dad94854fbff Mon Sep 17 00:00:00 2001
From: Sarankumar Baskar
+ * By default, leading spaces in parsed file names are preserved because Unix file names can legitimately contain leading spaces. However, some FTP servers + * (including IBM i / OS/400 systems returning Unix-style listings) pad the date column with extra spaces when showing a year instead of a time for + * older entries. This can result in file names with an unintended leading space. Use the {@link #UnixFTPEntryParser(FTPClientConfig, boolean)} constructor + * with {@code trimLeadingSpaces} set to {@code true} to remove leading spaces from file names. + *
* * @see org.apache.commons.net.ftp.FTPFileEntryParser FTPFileEntryParser (for usage instructions) */ From 4cf1f577ae86eddaead05abe9bca1fd06f792306 Mon Sep 17 00:00:00 2001 From: Gary Gregory- * By default, leading spaces in parsed file names are preserved because Unix file names can legitimately contain leading spaces. However, some FTP servers - * (including IBM i / OS/400 systems returning Unix-style listings) pad the date column with extra spaces when showing a year instead of a time for - * older entries. This can result in file names with an unintended leading space. Use the {@link #UnixFTPEntryParser(FTPClientConfig, boolean)} constructor - * with {@code trimLeadingSpaces} set to {@code true} to remove leading spaces from file names. + * By default, leading spaces in parsed file names are preserved because Unix file names may legitimately begin with spaces. However, some FTP servers, + * including IBM i (formerly OS/400) systems that return Unix-style listings, pad the date field with additional spaces when displaying a year instead + * of a time for older entries. As a result, parsed file names may incorrectly include a leading space. To remove these unintended spaces, use the + * {@link #UnixFTPEntryParser(FTPClientConfig, boolean)} constructor with {@code trimLeadingSpaces} set to {@code true}. *
* * @see org.apache.commons.net.ftp.FTPFileEntryParser FTPFileEntryParser (for usage instructions)