mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
fix: recreate full directory path and fix hooks
This fixes two bugs. The first had to do with the path library not working in prod. That involved making a simple version of it that works in the meantime. The other is rendering a different number of hooks which required moving hooks outside of an if statement.
This commit is contained in:
@@ -73,9 +73,8 @@ 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: fullFilePath,
|
||||
Path: innerFileInfoInt.Name(),
|
||||
Size: innerFileInfoInt.Size(),
|
||||
Mode: innerFileInfoInt.Mode(),
|
||||
ModTime: innerFileInfoInt.ModTime().UnixMilli(),
|
||||
|
||||
Reference in New Issue
Block a user