diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2025-11-19 16:36:06 -0800 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2025-11-19 16:36:06 -0800 |
| commit | 1b2df8a630bfc83304ef90610bdf7ebe91d4e555 (patch) | |
| tree | 9a9df319d5cc16ab9cdebf481515c11f648a4ba1 /hotline/files.go | |
| parent | b395859da4937fa4c3064f4e022e46690df8f2d4 (diff) | |
Fix error when downloading incomplete files
Diffstat (limited to 'hotline/files.go')
| -rw-r--r-- | hotline/files.go | 4 |
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()) |