Skip to content

flier/mounted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Get information about the mounted file systems.

Features

  • list the mounted file system
  • support Linux
  • support MacOS/BSD
  • support Windows
  • command line tools (fstab)

Install

$ go get github.com/flier/mounted

Usage

fstab, err := mounted.FileSystems()

if err != nil {
    fmt.Printf("fail to get mounted file systems, %s", err)

    os.Exit(-1)
}

for _, fs := range fstab {
    fmt.Printf("%s\n", fs)
}

Tools

$ go get github.com/flier/mounted/cmd/fstab
$ fstab
...
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
...

About

Get information about the mounted file systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages