|
@@ -168,8 +168,6 @@ class S3FileSystem(object):
|
|
|
bucket_name, key_name = s3.parse_uri(path)[:2]
|
|
bucket_name, key_name = s3.parse_uri(path)[:2]
|
|
|
bucket = self._get_bucket(bucket_name)
|
|
bucket = self._get_bucket(bucket_name)
|
|
|
try:
|
|
try:
|
|
|
- print('_get_key')
|
|
|
|
|
- print(key_name)
|
|
|
|
|
return bucket.get_key(key_name, validate=validate)
|
|
return bucket.get_key(key_name, validate=validate)
|
|
|
except BotoClientError as e:
|
|
except BotoClientError as e:
|
|
|
raise S3FileSystemException(_('Failed to access path at "%s": %s') % (path, e.reason))
|
|
raise S3FileSystemException(_('Failed to access path at "%s": %s') % (path, e.reason))
|
|
@@ -193,8 +191,6 @@ class S3FileSystem(object):
|
|
|
return S3Stat.for_s3_root()
|
|
return S3Stat.for_s3_root()
|
|
|
|
|
|
|
|
try:
|
|
try:
|
|
|
- print('path:')
|
|
|
|
|
- print(path)
|
|
|
|
|
key = self._get_key(path, validate=True)
|
|
key = self._get_key(path, validate=True)
|
|
|
except BotoClientError as e:
|
|
except BotoClientError as e:
|
|
|
raise S3FileSystemException(_('Failed to access path "%s": %s') % (path, e.reason))
|
|
raise S3FileSystemException(_('Failed to access path "%s": %s') % (path, e.reason))
|
|
@@ -206,8 +202,6 @@ class S3FileSystem(object):
|
|
|
else:
|
|
else:
|
|
|
raise S3FileSystemException(_('Failed to access path "%s": %s') % (path, e.reason))
|
|
raise S3FileSystemException(_('Failed to access path "%s": %s') % (path, e.reason))
|
|
|
except Exception as e: # SSL errors show up here, because they've been remapped in boto
|
|
except Exception as e: # SSL errors show up here, because they've been remapped in boto
|
|
|
- import traceback
|
|
|
|
|
- print(traceback.print_exc())
|
|
|
|
|
raise S3FileSystemException(_('Failed to access path "%s": %s') % (path, str(e)))
|
|
raise S3FileSystemException(_('Failed to access path "%s": %s') % (path, str(e)))
|
|
|
if key is None:
|
|
if key is None:
|
|
|
key = self._get_key(path, validate=False)
|
|
key = self._get_key(path, validate=False)
|