mirror of
https://github.com/wakatime/sublime-wakatime.git
synced 2023-08-10 21:13:02 +03:00
Clean up legacy wakatime-cli directory if exists
This commit is contained in:
parent
b405f99cff
commit
847223cdce
@ -639,6 +639,9 @@ class DownloadCLI(threading.Thread):
|
|||||||
def run(self):
|
def run(self):
|
||||||
log(INFO, 'Downloading wakatime-cli...')
|
log(INFO, 'Downloading wakatime-cli...')
|
||||||
|
|
||||||
|
if os.path.isdir(os.path.join(RESOURCES_FOLDER, 'wakatime-cli')):
|
||||||
|
shutil.rmtree(os.path.join(RESOURCES_FOLDER, 'wakatime-cli'))
|
||||||
|
|
||||||
if not os.path.exists(RESOURCES_FOLDER):
|
if not os.path.exists(RESOURCES_FOLDER):
|
||||||
os.makedirs(RESOURCES_FOLDER)
|
os.makedirs(RESOURCES_FOLDER)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user