#linux #macos #windows #list #mount #mount-points

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

#15 in #mount

Download history 49/week @ 2025-12-19 19/week @ 2025-12-26 22/week @ 2026-01-02 5/week @ 2026-01-09 39/week @ 2026-01-16 20/week @ 2026-01-23 23/week @ 2026-01-30 10/week @ 2026-02-06 9/week @ 2026-02-13 61/week @ 2026-02-20 32/week @ 2026-02-27 24/week @ 2026-03-06 24/week @ 2026-03-13 25/week @ 2026-03-20 38/week @ 2026-03-27 71/week @ 2026-04-03

161 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