remove refs to deprecated io/ioutil

This commit is contained in:
nikk gitanes
2023-07-10 03:14:53 +03:00
parent 4c41f7ddcc
commit 1d875b57b2
8 changed files with 18 additions and 20 deletions

View File

@@ -1,7 +1,6 @@
package server
import (
"io/ioutil"
"net"
"os"
"path/filepath"
@@ -36,7 +35,7 @@ func cleanCache() {
return
}
dirs, err := ioutil.ReadDir(settings.BTsets.TorrentsSavePath)
dirs, err := os.ReadDir(settings.BTsets.TorrentsSavePath)
if err != nil {
return
}
@@ -68,7 +67,7 @@ func cleanCache() {
}
func removeAllFiles(path string) {
files, err := ioutil.ReadDir(path)
files, err := os.ReadDir(path)
if err != nil {
return
}