aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/backend/disk_file.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/storage/backend/disk_file.go')
-rw-r--r--weed/storage/backend/disk_file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/backend/disk_file.go b/weed/storage/backend/disk_file.go
index 7c8616cf6..7f2b39d15 100644
--- a/weed/storage/backend/disk_file.go
+++ b/weed/storage/backend/disk_file.go
@@ -14,9 +14,9 @@ type DiskFile struct {
fullFilePath string
}
-func NewDiskFile(fullFilePath string, f *os.File) *DiskFile {
+func NewDiskFile(f *os.File) *DiskFile {
return &DiskFile{
- fullFilePath: fullFilePath,
+ fullFilePath: f.Name(),
File: f,
}
}