You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Hongyuan Li (JIRA)" <ji...@apache.org> on 2017/05/31 08:19:06 UTC
[jira] [Updated] (HADOOP-14469) the listStatus method of
FTPFileSystem should ignore the path "." and ".."
[ https://issues.apache.org/jira/browse/HADOOP-14469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hongyuan Li updated HADOOP-14469:
---------------------------------
Attachment: HADOOP-14469-001.patch
attach patch
> the listStatus method of FTPFileSystem should ignore the path "." and ".."
> ---------------------------------------------------------------------------
>
> Key: HADOOP-14469
> URL: https://issues.apache.org/jira/browse/HADOOP-14469
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Hongyuan Li
> Assignee: Hongyuan Li
> Attachments: HADOOP-14469-001.patch
>
>
> for some ftpsystems, liststatus method will return new Path(".") and new Path(".."), thus causing list op looping.We can see in code below:
> {code}
> private FileStatus[] listStatus(FTPClient client, Path file)
> throws IOException {
> ……
> FileStatus[] fileStats = new FileStatus[ftpFiles.length];
> for (int i = 0; i < ftpFiles.length; i++) {
> fileStats[i] = getFileStatus(ftpFiles[i], absolute);
> }
> return fileStats;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org