mirror of
https://github.com/taigrr/wails.git
synced 2026-04-17 04:05:12 -07:00
Develop (#250)
This commit is contained in:
16
runtime/filesystem.go
Normal file
16
runtime/filesystem.go
Normal file
@@ -0,0 +1,16 @@
|
||||
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()
|
||||
}
|
||||
Reference in New Issue
Block a user