diff --git a/internal/piwigo/files.go b/internal/piwigo/files.go index b07b090..349f78c 100644 --- a/internal/piwigo/files.go +++ b/internal/piwigo/files.go @@ -2,8 +2,8 @@ package piwigo import ( "fmt" - "io/ioutil" "net/url" + "os" "path/filepath" "strings" "sync" @@ -161,7 +161,7 @@ func (p *Piwigo) ScanTree( return } - dirs, err := ioutil.ReadDir(rootPath) + dirs, err := os.ReadDir(rootPath) if err != nil { stat.Error("ScanTree Dir", rootPath, err) return