gopsutil icon indicating copy to clipboard operation
gopsutil copied to clipboard

get Fstype is empty on windows

Open rustbomber opened this issue 4 years ago • 1 comments
trafficstars

Describe the bug [A clear and concise description of what the bug is.]

To Reproduce

disk_stat, _ := disk.Usage(disk_partition.Mountpoint)
println(disk_stat.String())

is output:

{"path":"C:","fstype":"","total":136041693184,"free":11213991936,"used":124827701248,"usedPercent":91.7569447472013,"inodesTotal":0,"inodesUsed":0,"inodesFree":0,"inodesUsedPercent":0}

Expected behavior return Fstype.

Environment (please complete the following information):

  • [x] Windows: [windows 10 / windows 2019]

Additional context complie on windows 10

rustbomber avatar Feb 04 '21 06:02 rustbomber

Yes, Fstype on Windows is not implemented yet. PR is always welcome!

shirou avatar Feb 06 '21 12:02 shirou