Comment #3 on issue 381 by
psir...@gmail.com: folder showing up as a file
instead of folder on unix system
https://code.google.com/p/s3fs/issues/detail?id=381
I am seeing the same thing. Here is an answer to your question from my POV.
Note that in this case, this is where Amazon is creating CloudTrail logs in
DIR/SUBDIR1/NNNN where NNNNNNNNNNNN is our AWS account ID. I can view the
directories in s3 browser and from the amazon console but s3fs just shows
(Though it does allow me to descend into SUBDIR1)
# ls -l
total 1
---------- 1 root root 0 Feb 25 2014 NNNNNNNNNNNN
# s3cmd info s3://DIR/
s3://DIR/ (bucket):
Location: any
ACL: PPPP: READ
ACL: PPPP: WRITE
ACL: PPPP: READ_ACP
ACL: PPPP: WRITE_ACP
# s3cmd info s3://DIR/SUBDIR1/
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please report the following lines to:
s3tool...@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Problem: ParseError: no element found: line 1, column 0
S3cmd: 1.0.0
Traceback (most recent call last):
File "/usr/bin/s3cmd", line 2006, in <module>
main()
File "/usr/bin/s3cmd", line 1950, in main
cmd_func(args)
File "/usr/bin/s3cmd", line 631, in cmd_info
info = s3.object_info(uri)
File "/usr/share/s3cmd/S3/S3.py", line 324, in object_info
response = self.send_request(request)
File "/usr/share/s3cmd/S3/S3.py", line 511, in send_request
raise S3Error(response)
File "/usr/share/s3cmd/S3/Exceptions.py", line 48, in __init__
tree = getTreeFromXml(response["data"])
File "/usr/share/s3cmd/S3/Utils.py", line 66, in getTreeFromXml
tree = ET.fromstring(xml)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1302, in XML
return parser.close()
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1655, in close
self._raiseerror(v)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1507, in
_raiseerror
raise err
ParseError: no element found: line 1, column 0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please report the above lines to:
s3tool...@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# s3cmd info s3://DIR/SUBDIR1/NNNNNNNNNNNN/
s3://DIR/SUBDIR1/NNNNNNNNNNNN/ (object):
File size: 0
Last mod: Tue, 25 Feb 2014 14:25:28 GMT
MIME type: text/plain
MD5 sum: d41d8cd98f00b204e9800998ecf8427e
ACL: aws_cloudtrail_us-east-1: FULL_CONTROL
ACL: PPPP: FULL_CONTROL
# s3cmd ls s3://DIR/SUBDIR1/NNNNNNNNNNNN/
DIR s3://DIR/SUBDIR1/NNNNNNNNNNNN/CloudTrail/
2014-02-25 14:25 0 s3://DIR/SUBDIR1/NNNNNNNNNNNN/
And I can continue to traverse subdirs with s3cmd. Just for completeness...
# s3fs --version
Amazon Simple Storage Service File System 1.74