fsspec/implementations/smb.py
def _open(
        self,
        path,
        mode="rb",
        block_size=-1,
        autocommit=True,
        cache_options=None,
        **kwargs,
    ):
        """
        block_size: int or None
            If 0, no buffering, 1, line buffering, >1, buffer that many bytes

        Notes
        -----
        By specifying 'share_access' in 'kwargs' it is possible to override the
        default shared access setting applied in the constructor of this object.
        """
        bls = block_size if block_size is not None and block_size >= 0 else -1
        wpath = _as_unc_path(self.host, path)
        share_access = kwargs.pop("share_access", self.share_access)
        if "w" in mode and autocommit is False:
            temp = _as_temp_path(self.host, path, self.temppath)
            return SMBFileOpener(wpath, temp, mode, block_size=bls, **kwargs)
        return smbclient.open_file(
            wpath, mode, buffering=bls, share_access=share_access, **kwargs
        )

        block_size: int or None
            If 0, no buffering, 1, line buffering, >1, buffer that many bytes

        Notes
        -----
        By specifying 'share_access' in 'kwargs' it is possible to override the
        default shared access setting applied in the constructor of this object.
        
int or None
If 0, no buffering, 1, line buffering, >1, buffer that many bytes

Notes

By specifying 'share_access' in 'kwargs' it is possible to override the
default shared access setting applied in the constructor of this object.
int or None If 0 no buffering 1 line buffering > 1 buffer that many bytes Notes By specifying ' share_access ' in ' kwargs ' it is possible to override the default shared access setting applied in the constructor of this object .
def _open(
        self,
        path,
        mode="rb",
        block_size=-1,
        autocommit=True,
        cache_options=None,
        **kwargs,
    ):
        bls = block_size if block_size is not None and block_size >= 0 else -1
        wpath = _as_unc_path(self.host, path)
        share_access = kwargs.pop("share_access", self.share_access)
        if "w" in mode and autocommit is False:
            temp = _as_temp_path(self.host, path, self.temppath)
            return SMBFileOpener(wpath, temp, mode, block_size=bls, **kwargs)
        return smbclient.open_file(
            wpath, mode, buffering=bls, share_access=share_access, **kwargs
        )
def _open ( self , path , mode = "rb" , block_size = - 1 , autocommit = True , cache_options = None , ** kwargs , ) : bls = block_size if block_size is not None and block_size >= 0 else - 1 wpath = _as_unc_path ( self . host , path ) share_access = kwargs . pop ( "share_access" , self . share_access ) if "w" in mode and autocommit is False : temp = _as_temp_path ( self . host , path , self . temppath ) return SMBFileOpener ( wpath , temp , mode , block_size = bls , ** kwargs ) return smbclient . open_file ( wpath , mode , buffering = bls , share_access = share_access , ** kwargs )
block_size: int or None
If 0, no buffering, 1, line buffering, >1, buffer that many bytes
block_size : int or None If 0 no buffering 1 line buffering > 1 buffer that many bytes
"""
        block_size: int or None
            If 0, no buffering, 1, line buffering, >1, buffer that many bytes

        Notes
        -----
        By specifying 'share_access' in 'kwargs' it is possible to override the
        default shared access setting applied in the constructor of this object.
        """
self
path
mode
block_size
autocommit
cache_options