ltk::files

Function mount

Source
pub fn mount<M: Send + 'static>(
    sender: &ChannelSender<M>,
    done: impl FnOnce(Result<Mount>) -> M + Send + 'static,
)
Expand description

Have the browser ask the user for a folder of their computer and mount it. Call it from the user’s press, since the browser opens its picker only then; natively it fails with Unsupported.