From 8c77cb4506488ea663641096f4e66af7b91cc52d Mon Sep 17 00:00:00 2001 From: celogeek <65178+celogeek@users.noreply.github.com> Date: Sun, 3 Mar 2024 12:11:14 +0100 Subject: [PATCH] fix deprecated --- internal/piwigo/files.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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