Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteFiles ¶
func DeleteFiles(dirPath string, targetFreeSpace uint64, pageSize int, freeSpace func() (uint64, error), logger log.Logger) (int, error)
DeleteFiles deletes a files until the free capacity reaches the target free capacity
func GetNOldestFiles ¶ added in v0.39.0
GetNOldestFiles returns the N oldest files on success or empty file slice and an error.
Types ¶
Click to show internal directories.
Click to hide internal directories.