(self, path: Optional[str] = None)
return filelock.FileLock(path)
Retrieve the appropriate `FileLock` backend for this storage plugin

        :param str path: The path to use for locking
        :return: A `FileLock` backend for obtaining locks
        :rtype: SwiftFileLock
Retrieve the appropriate `FileLock` backend for this storage plugin
Retrieve the appropriate FileLock backend for this storage plugin
def get_lock(self, path: Optional[str] = None) -> filelock.FileLock:
        """
        Retrieve the appropriate `FileLock` backend for this storage plugin

        :param str path: The path to use for locking
        :return: A `FileLock` backend for obtaining locks
        :rtype: SwiftFileLock
        """
        if path is None:
            path = self.mirror_base_path.joinpath(self.flock_path).as_posix()
        logger.debug(f"Retrieving FileLock instance @ {path}")
        return filelock.FileLock(path)
def get_lock ( self , path : Optional [ str ] = None ) -> filelock . FileLock : if path is None : path = self . mirror_base_path . joinpath ( self . flock_path ) . as_posix ( ) logger . debug ( f"Retrieving FileLock instance @ {path}" ) return filelock . FileLock ( path )