maybe i gotta rethink my whole approach on windows

master
Jordan Orelli 2 years ago
parent e57e776111
commit 2249ffab4b

@ -1 +1,3 @@
nnoremap <buffer> <C-]> :ALEGoToDefinition<CR> if !has('nvim')
nnoremap <buffer> <C-]> :ALEGoToDefinition<CR>
endif

@ -137,12 +137,16 @@ class WSLHost(Target):
print(f"is link: {is_link}") print(f"is link: {is_link}")
if target_path.exists(): if target_path.exists():
print("target path exists") print("target path exists")
if target_path.is_file(): if source_path.is_file():
print("removing existing regular file") if target_path.is_file():
target_path.unlink() print("removing existing regular file")
else: target_path.unlink()
print("skip: target path exists and is not a regular file") else:
return print("skip: target path exists and is not a regular file")
return
elif source_path.is_dir():
print("removing existing file tree")
shutil.rmtree(target_path)
else: else:
print("target path does not exist") print("target path does not exist")
print("copying file to target") print("copying file to target")

Loading…
Cancel
Save