|
|
@ -840,16 +840,15 @@ class PathFormat():
|
|
|
|
shutil.copyfile(self.temppath, self.realpath)
|
|
|
|
shutil.copyfile(self.temppath, self.realpath)
|
|
|
|
os.unlink(self.temppath)
|
|
|
|
os.unlink(self.temppath)
|
|
|
|
|
|
|
|
|
|
|
|
if "_mtime" in self.kwdict:
|
|
|
|
mtime = self.kwdict.get("_mtime")
|
|
|
|
|
|
|
|
if mtime:
|
|
|
|
# Set file modification time
|
|
|
|
# Set file modification time
|
|
|
|
mtime = self.kwdict["_mtime"]
|
|
|
|
try:
|
|
|
|
if mtime:
|
|
|
|
if isinstance(mtime, str):
|
|
|
|
try:
|
|
|
|
mtime = mktime_tz(parsedate_tz(mtime))
|
|
|
|
if isinstance(mtime, str):
|
|
|
|
os.utime(self.realpath, (time.time(), mtime))
|
|
|
|
mtime = mktime_tz(parsedate_tz(mtime))
|
|
|
|
except Exception:
|
|
|
|
os.utime(self.realpath, (time.time(), mtime))
|
|
|
|
pass
|
|
|
|
except Exception:
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DownloadArchive():
|
|
|
|
class DownloadArchive():
|
|
|
|