Files

17 lines
345 B
Go
Raw Permalink Normal View History

2019-10-08 06:12:08 +11:00
package runtime
import "os"
2019-10-08 06:12:08 +11:00
// FileSystem exposes file system utilities to the runtime
type FileSystem struct{}
2019-10-08 06:12:08 +11:00
// 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()
2019-10-08 06:12:08 +11:00
}