mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
remove refs to deprecated io/ioutil
This commit is contained in:
@@ -3,7 +3,6 @@ package main
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -127,7 +126,7 @@ func watchTDir(dir string) {
|
||||
path = dir
|
||||
}
|
||||
for {
|
||||
files, err := ioutil.ReadDir(path)
|
||||
files, err := os.ReadDir(path)
|
||||
if err == nil {
|
||||
for _, file := range files {
|
||||
filename := filepath.Join(path, file.Name())
|
||||
|
||||
Reference in New Issue
Block a user