mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
markdown preview
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// 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)
|
||||
}
|
||||
Reference in New Issue
Block a user