mirror of
https://github.com/celogeek/piwigo-cli.git
synced 2025-05-25 10:12:37 +02:00
fix deprecated
This commit is contained in:
parent
efc5a9793e
commit
8c77cb4506
@ -2,8 +2,8 @@ package piwigo
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
|
||||||
"net/url"
|
"net/url"
|
||||||
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
@ -161,7 +161,7 @@ func (p *Piwigo) ScanTree(
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
dirs, err := ioutil.ReadDir(rootPath)
|
dirs, err := os.ReadDir(rootPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
stat.Error("ScanTree Dir", rootPath, err)
|
stat.Error("ScanTree Dir", rootPath, err)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user