File: check_reflink_support.rs

package info (click to toggle)
rust-reflink-copy 0.1.26-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 248 kB
  • sloc: makefile: 2
file content (15 lines) | stat: -rw-r--r-- 451 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// cargo run --example check_reflink_support V:\folder1 X:\folder2

fn main() -> std::io::Result<()> {
    let args: Vec<_> = std::env::args().collect();
    if args.len() < 3 {
        eprintln!("Usage: {} <source_path> <target_path>", args[0]);
        return Ok(());
    }
    let src_path = &args[1];
    let tgt_path = &args[2];

    let result = reflink_copy::check_reflink_support(src_path, tgt_path)?;
    println!("{result:?}");
    Ok(())
}