<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 24 September 2015 at 12:00, Lucian Musat <span dir="ltr">&lt;<a href="mailto:george.l.musat@intel.com" target="_blank">george.l.musat@intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1rd" class="a3s" style="overflow:hidden">         if os.path.islink(sshloglink):<br>
             os.unlink(sshloglink)<br>
+        elif os.path.isfile(sshloglink):<br>
+                os.remove(sshloglink)</div></blockquote></div><br>So if sshloglink is a link or a file, delete it.   How is this different from just deleting the file if it exists?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>