# Lomiri Storage Provider Rclone

A Lomiri Storage Framework provider backed by [Rclone](https://rclone.org/).

## Development setup

The provider does not yet learn its remote from an account, so
`RcloneProvider::resolve_fs()` falls back to a hardcoded local filesystem:

    :local:/tmp/lsf-rclone/

That directory has to exist, otherwise rclone answers `directory not found`,
`Roots()` fails, and clients report the account as unreadable:

    mkdir -p /tmp/lsf-rclone

This fallback is only for client bringup, to be removed once the remote arrives
through the account context.

To use the provider without a client:

    gdbus call -e -d com.lomiri.StorageFramework.Provider.Rclone \
        -o /provider/0 -m com.lomiri.StorageFramework.Provider.Roots '[]'
    gdbus call -e -d com.lomiri.StorageFramework.Provider.Rclone \
        -o /provider/0 -m com.lomiri.StorageFramework.Provider.List '.' '' '[]'

## Tests

    cmake -B build && cmake --build build && ctest --test-dir build

The tests that use a `rclone rcd` need a rclone binary on `PATH`
