Добавлено удаление ссылок в домашней директории

git-svn-id: http://svn.calculate.ru/calculate2/calculate-client/trunk@633 c91db197-33c1-4113-bf15-f8a5c547ca64
develop
asamoukin 16 years ago
parent b2c4acd0c8
commit 6cd82b5fc9

@ -947,8 +947,14 @@ install/6intranet" %(domain,servDn,unixDN,bindDn,bindPw)
files = []
movedLink = os.path.join('Moved')
movedPath = os.path.join('Home',"Moved")
filesDir = filter(lambda x: not ('.' in x[0] or x in\
['Disks','Home','Moved'] or os.path.islink(x)), os.listdir('.'))
filesAndDir = filter(lambda x: not ('.' in x[0] or x in\
['Disks','Home','Moved']), os.listdir('.'))
filesDir = []
for fd in filesAndDir:
if os.path.islink(fd):
os.unlink(fd)
else:
filesDir.append(fd)
if not filesDir or not os.path.exists("Home"):
if os.path.islink(movedLink) and not os.path.exists(movedPath):
os.unlink(movedLink)

Loading…
Cancel
Save