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))
|
||||
if mountpoint.is_symlink():
|
||||
mountpoint.unlink();
|
||||
if mountpoint.exist():
|
||||
if mountpoint.exists():
|
||||
mountpoint.rename(mountpoint + datetime.now().strftime("%Y-%m-%d")
|
||||
+ ''.join(random.choice(
|
||||
string.ascii_uppercase + string.digits) for _ in range(6))
|
||||
|
|
Loading…
Reference in a new issue