develop
asamoukin 16 years ago
parent 9941fe19b9
commit 297894c126

@ -2020,13 +2020,15 @@ class profile(_file, _terms):
flagForce = False
# Если есть указатель на файл профиля (link)
if objHeadNew.params.has_key("link"):
#prevOldFile = oldFile
profileFile = objHeadNew.params['link']
foundProfileFile = os.path.exists(profileFile)
if foundProfileFile:
FO = self.openNewFile(profileFile)
buff = FO.read()
FO.close()
if os.path.exists(oldFile):
os.remove(oldFile)
if foundProfileFile:
fd = os.open(oldFile, os.O_CREAT)
os.close(fd)
os.chmod(oldFile, self._mode)

Loading…
Cancel
Save