mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
feat: add basic directory navigation in preview
Note: this does not add backwards navigation and will break if attempting to open certain types of files.
This commit is contained in:
@@ -73,8 +73,9 @@ func (fs *FileService) ReadFile(path string) (*FullFile, error) {
|
||||
var innerFilesInfo []FileInfo
|
||||
for _, innerFileEntry := range innerFilesEntries {
|
||||
innerFileInfoInt, _ := innerFileEntry.Info()
|
||||
fullFilePath := filepath.Join(finfo.Path, innerFileInfoInt.Name())
|
||||
innerFileInfo := FileInfo{
|
||||
Path: innerFileInfoInt.Name(),
|
||||
Path: fullFilePath,
|
||||
Size: innerFileInfoInt.Size(),
|
||||
Mode: innerFileInfoInt.Mode(),
|
||||
ModTime: innerFileInfoInt.ModTime().UnixMilli(),
|
||||
|
||||
Reference in New Issue
Block a user