Scans files and adds them to the media content provider.
Usage #
package main
import (
"fmt"
t "github.com/hugmouse/gotermux"
)
func main() {
// Scan recursively with verbose output
result := t.TermuxMediaPlayerScan(true, true)
fmt.Println("Scan result:", result)
// Simple scan without recursion or verbose output
result2 := t.TermuxMediaPlayerScan(false, false)
fmt.Println("Simple scan:", result2)
}
Parameters #
recur bool
- Set totrue
to scan directories recursivelyverbose bool
- Set totrue
for verbose output
Return Value #
Returns string
containing scan results.