Skip to content

Commit

Permalink
fix: use replacement of deprecated function (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrodriguez authored Mar 26, 2024
1 parent 66d6e6e commit b00ad1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions daemon/services/core/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package core

import (
"fmt"
"io/ioutil"
"math"
"os"
"os/exec"
Expand Down Expand Up @@ -101,7 +100,7 @@ func getItems(blockSize uint64, re *regexp.Regexp, src, folder string) ([]*domai
return []*domain.Item{&domain.Item{Name: folder, Size: uint64(fi.Size()), Path: folder, Location: src}}, uint64(fi.Size()), nil
}

entries, err := ioutil.ReadDir(srcFolder)
entries, err := os.ReadDir(srcFolder)
if err != nil {
return nil, total, err
}
Expand Down

0 comments on commit b00ad1e

Please sign in to comment.