mirror of
https://github.com/celogeek/piwigo-cli.git
synced 2025-05-25 02:02:37 +02:00
fix deprecated
This commit is contained in:
parent
efc5a9793e
commit
8c77cb4506
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user