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

Steve Loughran commented on HADOOP-16613:
-----------------------------------------

# should we ourselves say content-type == application/x-directory means it is a 
dir, irrespective of len
# how to react to something without a / which says it is an x-directory?

> s3a to set fake directory marker contentType to application/x-directory
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-16613
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16613
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3
>    Affects Versions: 3.2.1, 3.1.3
>            Reporter: Jose Torres
>            Priority: Minor
>
> S3AFileSystem doesn't set a contentType for fake directory files, causing it 
> to be inferred as "application/octet-stream". But fake directory files 
> created through the S3 web console have content type 
> "application/x-directory". We may want to adopt the web console behavior as a 
> standard, since some systems will rely on content type and not size + 
> trailing slash to determine if an object represents a directory.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to