Mount your Microsoft OneDrive storage as [FUSE] filesystem.
Use your package manager to install dependencies: - openssl - fuse (libfuse)
Install it from crates.io:
bash
cargo install onedrive-fuse
For the first time, you should register your own Application (Client) ID for the API access.
Read doc/register_app.md
for steps.
Login to your OneDrive account with Client ID of your own application.
This will prompt a browser window to ask you to login your Microsoft account for OneDrive.
After a successful login, the page will redirect your to a blank page whose URL contains nativeclient?code=
,
then copy the FULL URL, paste it to the terminal and press enter to login.
```bash
onedrive-fuse login --client-id
```
Your access token will be saved to to XDG config directory,
which is default to be ~/.config/onedrive-fuse/credential.json
.
Finally, mount your OneDrive to a empty directory.
It works in foreground by default, the terminal window should be kept opened.
It will fetch the whole tree hierarchy before mounting,
please wait for FUSE initialized
to be shown and the filesystem is now mounted.
```bash
mkdir -p ~/onedrive # The directory to be mounted should be empty.
onedrive-fuse mount ~/onedrive
```
Umount the fuse filesystem gracefully.
You should NOT directly Ctrl-C
or kill the onedrive-fuse
instance.
Warning: Wait your upload session to be finished before umounting the filesystem. Currently we don't yet implemented waiting for uploading before shutdown.
bash
fusermount -u ~/onedrive
GPL-3.0