Greetings all,
I'm trying to crate some symbolic links, provided the link doesn't already exist. To do that, this is what I've done:
if not os.path.islink(dst_dir):
os.symlink("src_dir", "dst_dir")
but still I'm getting OSError: [Errno 17] File exists
for an existing link. Any idea what am I missing?
another question, how can I use os.symlink() to create force link one using ln -fs <src> <dst>
i.e. fore create even if exist. Is it possible somehow?
Thanks in advance. cheers!!!