mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
18 lines
323 B
Go
18 lines
323 B
Go
|
// Copyright 2024, Command Line Inc.
|
||
|
// SPDX-License-Identifier: Apache-2.0
|
||
|
|
||
|
package fileservice
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
|
||
|
"github.com/wavetermdev/thenextwave/pkg/wavebase"
|
||
|
)
|
||
|
|
||
|
type FileService struct{}
|
||
|
|
||
|
func (fs *FileService) ReadFile(path string) ([]byte, error) {
|
||
|
path = wavebase.ExpandHomeDir(path)
|
||
|
return os.ReadFile(path)
|
||
|
}
|