Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScanAndClean ¶
func ScanAndClean( path string, maxNrOfItems int, onDelete func(item fs.FileInfo, itemPath string), onScan func(item fs.FileInfo, itemPath string), onFinish func(result ScanAndCleanResult), ) error
ScanAndClean -> will scan the folder for items, and it will check if there are multiple files in it.... if there are more than maxNrOfItems then it will delete them by scanned order...
Types ¶
Click to show internal directories.
Click to hide internal directories.