def create_file_from_path(self, share_name, directory_name, file_name, <EOL>local_file_path, content_settings=None,<EOL>metadata=None, progress_callback=None,<EOL>max_connections=<NUM_LIT:1>, max_retries=<NUM_LIT:5>, retry_wait=<NUM_LIT:1.0>, timeout=None):
_validate_not_none('<STR_LIT>', share_name)<EOL>_validate_not_none('<STR_LIT>', file_name)<EOL>_validate_not_none('<STR_LIT>', local_file_path)<EOL>count = path.getsize(local_file_path)<EOL>with open(local_file_path, '<STR_LIT:rb>') as stream:<EOL><INDENT>self.create_file_from_stream(<EOL>share_name, directory_name, file_name, stream,<EOL>count, content_settings, metadata, progress_callback,<EOL>max_connections, max_retries, retry_wait, timeout)<EOL><DEDENT>
Creates a new azure file from a local file path, or updates the content of an
existing file, with automatic chunking and progress notifications.

:param str share_name:
    Name of existing share.
:param str directory_name:
    The path to the directory.
:param str file_name:
    Name of file to create or update.
:param str local_file_path:
    Path of the local file to upload as the file content.
:param ~azure.storage.file.models.ContentSettings content_settings:
    ContentSettings object used for setting file properties.
:param metadata:
    Name-value pairs associated with the file as metadata.
:type metadata: a dict mapping str to str
:param progress_callback:
    Callback for progress with signature function(current, total) where
    current is the number of bytes transfered so far and total is the
    size of the file, or None if the total size is unknown.
:type progress_callback: callback function in format of func(current, total)
:param int max_connections:
    Maximum number of parallel connections to use when the file size
    exceeds 64MB.
    Set to 1 to upload the file chunks sequentially.
    Set to 2 or more to upload the file chunks in parallel. This uses
    more system resources but will upload faster.
:param int max_retries:
    Number of times to retry upload of file chunk if an error occurs.
:param int retry_wait:
    Sleep time in secs between retries.
:param int timeout:
    The timeout parameter is expressed in seconds. This method may make 
    multiple calls to the Azure service and the timeout will apply to 
    each call individually.