Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixes #437 : Updated GetAvailableDiskSize function #438

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sundaram2021
Copy link

Description

in internal/validations.go
we have syscall.Statfs and Statfs_t which are os specific methods and does not work in windows
so what i have does add a pkf "github.com/shirou/gopsutil/disk"
which is used to calculate the available disk and it is os independent and maintained regularly

Related Issue(s)

Fixes # 437

How to test

clone repo on a windows machine and you will straight away see that

@patrickdappollonio
Copy link
Member

Hey @sundaram2021! Would you mind bumping/updating the go.mod and go.sum here? A go mod tidy would suffice.

We would love to merge this whenever possible! Thank you!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants