#mount-points #macos #mount #mountpaths

mountpoints

List mount points (windows, linux, macos)

4 releases

0.2.1 Sep 28, 2022
0.2.0 Sep 28, 2022
0.1.1 May 21, 2022
0.1.0 Apr 20, 2021

#1109 in Filesystem

Download history 59/week @ 2024-12-11 30/week @ 2024-12-18 8/week @ 2024-12-25 6/week @ 2025-01-01 14/week @ 2025-01-08 35/week @ 2025-01-15 15/week @ 2025-01-22 14/week @ 2025-01-29 29/week @ 2025-02-05 27/week @ 2025-02-12 23/week @ 2025-02-19 27/week @ 2025-02-26 18/week @ 2025-03-05 26/week @ 2025-03-12 13/week @ 2025-03-19 27/week @ 2025-03-26

87 downloads per month
Used in 5 crates (3 directly)

MIT/Apache

19KB
423 lines

mountpoints - List mount points (windows, linux, macos)

Example

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

Dependencies

~215KB