@@ -214,6 +214,13 @@ class S3FS(FS):
214
214
PyFilesystem specification exactly. Set to ``False`` to disable
215
215
validation of destination paths which may speed up uploads /
216
216
downloads.
217
+ :param bool use_ssl: Whether or not to use SSL. The default is ``True``.
218
+ :param bool or str verify: Whether or not to verify SSL certificates. By
219
+ default SSL certificates are verified. Set to ``False`` to disable
220
+ verification of SSL certificates. To use a different CA cert bundle
221
+ than the one used by botocore, set this parameter to a string that is
222
+ the path to a CA cert bundle. The default is ``None``, which inherits
223
+ the default behavior of botocore.
217
224
:param str cache_control: Sets the 'Cache-Control' header for uploads.
218
225
:param str acl: Sets the Access Control List header for uploads.
219
226
:param dict upload_args: A dictionary for additional upload arguments.
@@ -273,6 +280,8 @@ def __init__(
273
280
region = None ,
274
281
delimiter = "/" ,
275
282
strict = True ,
283
+ use_ssl = True ,
284
+ verify = None ,
276
285
cache_control = None ,
277
286
acl = None ,
278
287
upload_args = None ,
@@ -294,6 +303,8 @@ def __init__(
294
303
self .region = region
295
304
self .delimiter = delimiter
296
305
self .strict = strict
306
+ self .use_ssl = use_ssl
307
+ self .verify = verify
297
308
self ._tlocal = threading .local ()
298
309
if cache_control or acl :
299
310
upload_args = upload_args or {}
@@ -371,6 +382,8 @@ def s3(self):
371
382
aws_secret_access_key = self .aws_secret_access_key ,
372
383
aws_session_token = self .aws_session_token ,
373
384
endpoint_url = self .endpoint_url ,
385
+ use_ssl = self .use_ssl ,
386
+ verify = self .verify ,
374
387
)
375
388
return self ._tlocal .s3
376
389
@@ -384,6 +397,8 @@ def client(self):
384
397
aws_secret_access_key = self .aws_secret_access_key ,
385
398
aws_session_token = self .aws_session_token ,
386
399
endpoint_url = self .endpoint_url ,
400
+ use_ssl = self .use_ssl ,
401
+ verify = self .verify ,
387
402
)
388
403
return self ._tlocal .client
389
404
0 commit comments