# rootftp
Rust-based FTP server with with custom configurable, sharing directories across private networks. Built on the top of [libunftp](https://github.com/bolcom/libunftp).
[](https://crates.io/crates/rootftp)
[](https://www.rust-lang.org)
[](https://github.com/rajeev-k47/rootftp/actions)

## Installation
- Install via Crates.io
```bash
cargo install rootftp
```
- Build from source (Recommanded) ``Additional systemd service``
```bash
git clone https://github.com/rajeev-k47/rootftp.git
cd rootftp
chmod +x ./scripts/install.sh
./scripts/install.sh
```
## Usage
- To start the server
```bash
rootftp start
```
> Add the -d flag to launch the server in the background as a daemon process.
If installed via script
```bash
sudo systemctl start rootftp
sudo systemctl enable rootftp
```
- To stop the server
```bash
rootftp stop
```
- To set a custom root directory:
```bash
rootftp setdir /custom/dir ```
- To check current status/config:
```bash
rootftp status
```