From: James Turner Date: Wed, 18 May 2016 09:50:57 +0000 (+0100) Subject: Fix removal of directories. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5d7b9f39cb27049973f2fffd338339106ee0290f;p=simgear.git Fix removal of directories. --- diff --git a/simgear/package/Install.cxx b/simgear/package/Install.cxx index df569ddf..cdfc7103 100644 --- a/simgear/package/Install.cxx +++ b/simgear/package/Install.cxx @@ -167,7 +167,9 @@ protected: } // extract_xxxx directory is now empty, so remove it - m_extractPath.remove(); + if (m_extractPath.exists()) { + simgear::Dir(m_extractPath).remove(); + } m_owner->m_revision = m_owner->package()->revision(); m_owner->writeRevisionFile();