filey

Crates.iofiley
lib.rsfiley
version1.4.0
sourcesrc
created_at2023-11-23 17:24:24.469634
updated_at2024-02-15 16:34:15.89553
descriptionA collection of utilities to make file operations more convenient.
homepage
repositoryhttps://github.com/p1486/filey-rs
max_upload_size
id1046406
size42,486
(9yokuro)

documentation

README

filey-rs

A collection of utilities to make file operations more convenient.

Install

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"

Examples

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())?;
Commit count: 26

cargo fmt