Skip to content

Commit

Permalink
fixing unit test and deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
johankristianss committed Mar 17, 2024
1 parent d733f7c commit b131007
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 116 deletions.
5 changes: 2 additions & 3 deletions pkg/fs/fs_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -148,7 +147,7 @@ func (fsClient *FSClient) ApplySyncPlan(syncPlan *SyncPlan) error {
if err != nil {
return err
}
err = ioutil.WriteFile(syncPlan.Dir+"/.cfs", cfsFileBytes, 0644)
err = os.WriteFile(syncPlan.Dir+"/.cfs", cfsFileBytes, 0644)
if err != nil {
return err
}
Expand Down Expand Up @@ -542,7 +541,7 @@ func (fsClient *FSClient) CalcCleanPlan(dir string, label string) (*CleanPlan, e
remoteFiles[fileData.Name] = fileData.Name
}

localFiles, err := ioutil.ReadDir(dir)
localFiles, err := os.ReadDir(dir)
if err != nil {
return nil, err
}
Expand Down
Loading

0 comments on commit b131007

Please sign in to comment.