mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 04:59:38 +08:00
17 lines
345 B
Go
17 lines
345 B
Go
package runtime
|
|
|
|
import "os"
|
|
|
|
// 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 os.UserHomeDir()
|
|
}
|