@@ -424,7 +424,7 @@ def create_directory(
424
424
:param file_system_name: Name of the file system or instance of FileSystemProperties.
425
425
:param directory_name: Name of the directory which needs to be created in the file system.
426
426
"""
427
- result = self .get_file_system (file_system_name ).create_directory (directory_name , kwargs )
427
+ result = self .get_file_system (file_system_name ).create_directory (directory_name , ** kwargs )
428
428
return result
429
429
430
430
def get_directory_client (
@@ -479,7 +479,7 @@ def upload_file(
479
479
"""
480
480
file_client = self .create_file (file_system_name , file_name )
481
481
with open (file_path , "rb" ) as data :
482
- file_client .upload_data (data , overwrite = overwrite , kwargs = kwargs )
482
+ file_client .upload_data (data , overwrite = overwrite , ** kwargs )
483
483
484
484
def upload_file_to_directory (
485
485
self ,
@@ -500,9 +500,9 @@ def upload_file_to_directory(
500
500
:param overwrite: Boolean flag to overwrite an existing file or not.
501
501
"""
502
502
directory_client = self .get_directory_client (file_system_name , directory_name = directory_name )
503
- file_client = directory_client .create_file (file_name , kwargs = kwargs )
503
+ file_client = directory_client .create_file (file_name , ** kwargs )
504
504
with open (file_path , "rb" ) as data :
505
- file_client .upload_data (data , overwrite = overwrite , kwargs = kwargs )
505
+ file_client .upload_data (data , overwrite = overwrite , ** kwargs )
506
506
507
507
def list_files_directory (
508
508
self , file_system_name : FileSystemProperties | str , directory_name : str
0 commit comments