aboutsummaryrefslogtreecommitdiff
path: root/hotline/files.go
diff options
context:
space:
mode:
Diffstat (limited to 'hotline/files.go')
-rw-r--r--hotline/files.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hotline/files.go b/hotline/files.go
index e9f7b4f..581b11c 100644
--- a/hotline/files.go
+++ b/hotline/files.go
@@ -112,9 +112,9 @@ func GetFileNameList(path string, ignoreList []string) (fields []Field, err erro
continue
}
- hlFile, err := NewFileWrapper(&OSFileStore{}, path+"/"+file.Name(), 0)
+ hlFile, err := NewFile(&OSFileStore{}, path+"/"+file.Name(), 0)
if err != nil {
- return nil, fmt.Errorf("NewFileWrapper: %w", err)
+ return nil, fmt.Errorf("NewFile: %w", err)
}
copy(fnwi.FileSize[:], hlFile.TotalSize())