Skip to content

Commit

Permalink
[Fix] [Connectors-v2-file-ftp] Unable to return file list under FTP p…
Browse files Browse the repository at this point in the history
…ath (apache#6077)
  • Loading branch information
xumingbei committed Dec 25, 2023
1 parent a9ec9d5 commit b7da459
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ private FileStatus getFileStatus(FTPClient client, Path file) throws IOException
return new FileStatus(
length, isDir, blockReplication, blockSize, modTime, root.makeQualified(this));
}
client.enterLocalPassiveMode();
String pathName = parentPath.toUri().getPath();
FTPFile[] ftpFiles = client.listFiles(pathName);
if (ftpFiles != null) {
Expand Down

0 comments on commit b7da459

Please sign in to comment.