Crates.io | filey |
lib.rs | filey |
version | 1.4.0 |
source | src |
created_at | 2023-11-23 17:24:24.469634 |
updated_at | 2024-02-15 16:34:15.89553 |
description | A collection of utilities to make file operations more convenient. |
homepage | |
repository | https://github.com/p1486/filey-rs |
max_upload_size | |
id | 1046406 |
size | 42,486 |
A collection of utilities to make file operations more convenient.
Run the following Cargo command in your project directory:
cargo add filey
Or add the following line to your Cargo.toml:
filey = "1.4.0"
Move a file to git repository and create symbolic link.
use filey::Filey;
let mut vimrc = Filey::new("~/.vimrc").expand_user()?;
let mut f = vimrc.move_to("dotfiles/")?;
f.symlink(&vimrc.path())?;