« Tu vois fiston, c'est ça un boulet. »

This commit is contained in:
Pierre-Elliott Bécue 2014-08-27 02:31:17 +02:00
parent e6bd4e9323
commit 147229b802

View file

@ -126,8 +126,8 @@ class home:
if homesplit[-2] != "club":
if os.path.exists(symlink) and os.path.islink(symlink):
os.unlink(symlink)
else:
raise OSError("Lien symbolique existant : %s" % (symlink,))
elif os.path.exists(symlink):
raise OSError("Impossible de créer le lien %s : un fichier ou un dossier existe déjà." % (symlink,))
os.symlink(home, symlink)
elif os.path.isdir(home):
# Il y un répertoire existant
@ -139,8 +139,8 @@ class home:
if homesplit[-2] != "club":
if os.path.exists(symlink) and os.path.islink(symlink):
os.unlink(symlink)
else:
raise OSError("Lien symbolique existant : %s" % (symlink,))
elif os.path.exists(symlink):
raise OSError("Impossible de créer le lien %s : un fichier ou un dossier existe déjà." % (symlink,))
os.symlink(home, symlink)
### Quota