mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-15 07:05:50 +01:00
16 lines
380 B
Go
16 lines
380 B
Go
package runtime
|
|
|
|
import homedir "github.com/mitchellh/go-homedir"
|
|
|
|
// FileSystem exposes file system utilities to the runtime
|
|
type FileSystem struct {}
|
|
|
|
// NewFileSystem creates a new FileSystem struct
|
|
func NewFileSystem() *FileSystem {
|
|
return &FileSystem{}
|
|
}
|
|
|
|
// HomeDir returns the user's home directory
|
|
func (r *FileSystem) HomeDir() (string, error) {
|
|
return homedir.Dir()
|
|
}
|