diskutil

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package diskutil implements disk related utilities for greenhouse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetATime

func GetATime(path string, defaultTime time.Time) time.Time

GetATime the atime for a file, logging errors instead of failing and returning defaultTime instead

func GetDiskUsage

func GetDiskUsage(path string) (percentBlocksFree float64, bytesFree, bytesUsed uint64, err error)

GetDiskUsage wraps syscall.Statfs for usage in GCing the disk

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL