fix exist to exists
This commit is contained in:
parent
7f99c7779d
commit
723ed0a433
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ def main(args):
|
||||||
mountpoint = Path(os.path.join(os.environ['HOME'], args.mountpoint))
|
mountpoint = Path(os.path.join(os.environ['HOME'], args.mountpoint))
|
||||||
if mountpoint.is_symlink():
|
if mountpoint.is_symlink():
|
||||||
mountpoint.unlink();
|
mountpoint.unlink();
|
||||||
if mountpoint.exist():
|
if mountpoint.exists():
|
||||||
mountpoint.rename(mountpoint + datetime.now().strftime("%Y-%m-%d")
|
mountpoint.rename(mountpoint + datetime.now().strftime("%Y-%m-%d")
|
||||||
+ ''.join(random.choice(
|
+ ''.join(random.choice(
|
||||||
string.ascii_uppercase + string.digits) for _ in range(6))
|
string.ascii_uppercase + string.digits) for _ in range(6))
|
||||||
|
|
Loading…
Reference in a new issue