fix deprecated

This commit is contained in:
Celogeek 2024-03-03 12:11:14 +01:00
parent efc5a9793e
commit 8c77cb4506
Signed by: celogeek
SSH Key Fingerprint: SHA256:njNJLzoLQdbV9PC6ehcruRb0QnEgxABoCYZ+0+aUIYc

View File

@ -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