same-file
A safe and simple cross platform crate to determine whether two files or directories are the same.
Dual-licensed under MIT or the UNLICENSE.
Documentation
Usage
Add this to your Cargo.toml
:
[]
= "0.1"
and this to your crate root:
extern crate same_file;
Example
The simplest use of this crate is to use the is_same_file
function, which
takes two file paths and returns true if and only if they refer to the same
file:
extern crate same_file;
use is_same_file;