summaryrefslogtreecommitdiff
path: root/methods/file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'methods/file.cc')
-rw-r--r--methods/file.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/file.cc b/methods/file.cc
index b689de619..8a087c36d 100644
--- a/methods/file.cc
+++ b/methods/file.cc
@@ -76,7 +76,7 @@ bool FileMethod::Fetch(FetchItem *Itm)
}
}
if (Res.IMSHit != true)
- unlink(Itm->DestFile.c_str());
+ RemoveFile("file", Itm->DestFile);
// See if the file exists
if (stat(File.c_str(),&Buf) == 0)