Crates.io | mountpoints |
lib.rs | mountpoints |
version | 0.2.1 |
source | src |
created_at | 2021-04-20 21:07:15.556112 |
updated_at | 2022-09-28 23:05:48.464121 |
description | List mount points (windows, linux, macos) |
homepage | |
repository | https://github.com/Speedy37/mountpoints-rs |
max_upload_size | |
id | 387343 |
size | 31,445 |
use mountpoints::mountpaths;
fn main() {
for mountpath in mountpaths().unwrap() {
println!("{}", mountpath.display());
}
}
Windows output:
C:\
C:\MyLittleMountPoint
D:\
Linux output:
/mnt/wsl
/init
/dev
/dev/pts
/run
/run/lock
/run/shm
/run/user
/proc/sys/fs/binfmt_misc
/sys/fs/cgroup
/sys/fs/cgroup/unified
/mnt/c
/mnt/d
Macos output:
/
/dev
/System/Volumes/Data
/private/var/vm
/System/Volumes/Data/home
/Volumes/VMware Shared Folders