Skip to content
This repository has been archived by the owner on Dec 29, 2024. It is now read-only.

Commit

Permalink
fix: renamed mounted.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Feb 9, 2024
1 parent 4a73642 commit da575b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions setting/config_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/go-playground/validator/v10"
"github.com/mitchellh/go-homedir"
"github.com/pelletier/go-toml/v2"
"github.com/wittano/filebot/internal/linux"
"github.com/wittano/filebot/internal/filesystem"
"github.com/wittano/filebot/path"
"golang.org/x/exp/maps"
"golang.org/x/exp/slices"
Expand All @@ -20,6 +20,8 @@ type Config struct {
Dirs []Directory `validate:"required"`
}

var config *Config

type Directory struct {
Src []string `validate:"required"`
Dest string `validate:"required_if=MoveToTrash false"`
Expand Down Expand Up @@ -100,7 +102,7 @@ func (d Directory) TrashDir() (trashDir string, err error) {
return
}

fs, err := linux.MountedList()
fs, err := filesystem.MountedList()
if err != nil {
return
}
Expand Down Expand Up @@ -137,8 +139,6 @@ func isUserRoot() bool {
return os.Getuid() == 0
}

var config *Config

func load(path string) (*Config, error) {
bytes, err := os.ReadFile(path)
if err != nil {
Expand Down

0 comments on commit da575b9

Please sign in to comment.