[ 
https://issues.apache.org/jira/browse/HDFS-10352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15266085#comment-15266085
 ] 

Lin Yiqun commented on HDFS-10352:
----------------------------------

Hi, [~ericlin], I also agree with this. But I'm not sure about its performance 
when one directory has lots of children files and it maybe costs some time to 
traverse all children files and compare their time. And finally it return the 
result slowly. I'm glad to work for this if someone else also support this 
proposal.

> Allow users to get last access time of a given directory
> --------------------------------------------------------
>
>                 Key: HDFS-10352
>                 URL: https://issues.apache.org/jira/browse/HDFS-10352
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.6.4
>            Reporter: Eric Lin
>            Priority: Minor
>
> Currently FileStatus.getAccessTime() function will return 0 if path is a 
> directory, it would be ideal that if a directory path is passed, the code 
> will go through all the files under the directory and return the MAX access 
> time of all the files.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to