diff options
-rw-r--r-- | sos/archive.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/archive.py b/sos/archive.py index 0336aabe..0b968517 100644 --- a/sos/archive.py +++ b/sos/archive.py @@ -195,7 +195,7 @@ class FileCacheArchive(Archive): def add_link(self, source, link_name): dest = self.dest_path(link_name) self._check_path(dest) - if not os.path.exists(dest): + if not os.path.lexists(dest): os.symlink(source, dest) self.log_debug("added symlink at '%s' to '%s' in FileCacheArchive '%s'" % (dest, source, self._archive_root)) |