(self, path: Optional[str] = None)
return SwiftFileLock(path, backend=self)
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) -> SwiftFileLock:
        """
        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 = str(self.mirror_base_path / ".lock")
        return SwiftFileLock(path, backend=self)
def get_lock ( self , path : Optional [ str ] = None ) -> SwiftFileLock : if path is None : path = str ( self . mirror_base_path / ".lock" ) return SwiftFileLock ( path , backend = self )