Use hidden directory based on mount path

This commit is contained in:
Ben Johnson
2020-11-03 12:21:13 -07:00
parent 42f9ba9d1c
commit bcc6963db6
3 changed files with 53 additions and 16 deletions

View File

@@ -24,7 +24,7 @@ type FileSystem struct {
config Config // configuration file
// Filepath to the root of the source directory.
SourcePath string
TargetPath string
}
func NewFileSystem() *FileSystem {
@@ -35,7 +35,7 @@ func NewFileSystem() *FileSystem {
// ConfigPath returns the path to the file system config file.
func (f *FileSystem) ConfigPath() string {
return filepath.Join(f.SourcePath, ConfigName)
return filepath.Join(f.TargetPath, ConfigName)
}
// Open initializes the file system and finds all managed database files.