diff --git a/EgtGeneral.rc b/EgtGeneral.rc index 4702d26..8174fa2 100644 Binary files a/EgtGeneral.rc and b/EgtGeneral.rc differ diff --git a/FileUtils.cpp b/FileUtils.cpp index f877d24..92d73b0 100644 --- a/FileUtils.cpp +++ b/FileUtils.cpp @@ -89,6 +89,19 @@ FindFirstFileEgt( const string& sFileSpec, string& sFileName) return false ; } +//---------------------------------------------------------------------------- +bool +ExistsDirectory( const string& sDir) +{ + // leggo gli attributi del direttorio + DWORD dwAttr = ::GetFileAttributesW( stringtoW( sDir)) ; + // se non esiste + if ( dwAttr == INVALID_FILE_ATTRIBUTES) + return false ; + // se è un direttorio + return ( (dwAttr & FILE_ATTRIBUTE_DIRECTORY) != 0) ; +} + //----------------------------------------------------------------------------- bool EmptyDirectory( const string& sDir)