var renaming

This commit is contained in:
Bernardo Damele 2012-07-11 13:39:33 +01:00
parent ff6ca6fb1a
commit 0c5f259481

View File

@ -88,14 +88,14 @@ class Miscellaneous:
kb.bannerFp["dbmsVersion"] = inject.getValue(query)
kb.bannerFp["dbmsVersion"] = (kb.bannerFp["dbmsVersion"] or "").replace(",", "").replace("-", "").replace(" ", "")
def delRemoteFile(self, tempFile):
def delRemoteFile(self, filename):
self.checkDbmsOs()
if Backend.isOs(OS.WINDOWS):
tempFile = posixToNtSlashes(tempFile)
cmd = "del /F /Q %s" % tempFile
filename = posixToNtSlashes(filename)
cmd = "del /F /Q %s" % filename
else:
cmd = "rm -f %s" % tempFile
cmd = "rm -f %s" % filename
self.execCmd(cmd, silent=True)