Docs.rs
hard-sync-core-1.0.0
hard-sync-core 1.0.0
Permalink
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
codad5
Dependencies
chrono ^0.4.44
normal
dirs ^6.0.0
normal
notify ^8.2.0
normal
regex ^1.12.3
normal
rodio ^0.22.2
normal
serde ^1.0.228
normal
serde_json ^1.0.149
normal
sha2 ^0.10.9
normal
sysinfo ^0.38.3
normal
walkdir ^2.5.0
normal
windows-sys ^0.61.2
normal
Versions
16.82%
of the crate is documented
Platform
aarch64-apple-darwin
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module drive
hard_
sync_
core
1.0.0
Module drive
Module Items
Structs
Functions
In crate hard_
sync_
core
hard_sync_core
Module
drive
Copy item path
Source
Structs
§
Connected
Drive
Functions
§
find_
mounted_
drive
Poll currently mounted drives and return the mount point of the first drive that matches the stored DriveId (by label OR uuid). Called in watch mode for cross-drive pairs.
get_
drive_
id
Given a path, detect the drive it lives on and return its DriveId. Returns None if the drive cannot be identified (e.g. network share).
list_
connected_
drives
List all currently connected drives on the system.
same_
drive
Returns true if both paths live on the same physical drive / mount point. Used on init to decide whether drive_id should be stored.