https://github.com/riffcc/lis
Life is short, but data should live forever
https://github.com/riffcc/lis
Last synced: 8 months ago
JSON representation
Life is short, but data should live forever
- Host: GitHub
- URL: https://github.com/riffcc/lis
- Owner: riffcc
- License: apache-2.0
- Created: 2024-08-06T14:06:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-15T14:39:40.000Z (about 1 year ago)
- Last Synced: 2024-10-25T01:14:55.490Z (about 1 year ago)
- Language: Rust
- Size: 154 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-iroh - lis - Life is short, but data should live forever. (File Sharing)
README
# lis
Life is short, but data should live forever
## Building
First make sure you have `fuse3` dev installed:
```bash
sudo apt-get install fuse3 libfuse3-dev
```
Then build Lis:
```bash
cargo build
cp ./target/debug/lis ./lis
```
## Usage
**Obs:** you can use `cargo run -- /path/to/root ...` instead of `lis` if you want to build and run every time (.e.g. when developing or testing changes).
Put a file in the node at `/path/to/node/directory`
```bash
lis /path/to/root put ./my_file.txt
```
List files in the node at `/path/to/node/directory`
```bash
lis /path/to/root list
```
Mount FUSE filesystem (readonly)
```bash
# will hang, leave it running
lis /path/to/root mount /path/to/mountpoint
# in another terminal
ls /path/to/mountpoint
cat /path/to/mountpoint/a-file.txt
```
Get contents of `README.md` file in the node at `/path/to/node/directory`
```bash
lis /path/to/root put README.md
lis /path/to/root get README.md
```