EgtGeneral 1.8c1 :
- Ricompilazione per modifiche a controllo validità nomi.
This commit is contained in:
+4
-8
@@ -181,16 +181,12 @@ ExistsDirectory( const string& sDir)
|
||||
bool
|
||||
EmptyDirectory( const string& sDir)
|
||||
{
|
||||
wstring sDirW ;
|
||||
wstring sFileW ;
|
||||
_wfinddata_t c_file ;
|
||||
intptr_t hFile ;
|
||||
|
||||
|
||||
sDirW = stringtoW( sDir) ;
|
||||
sFileW = sDirW + L"\\*.*" ;
|
||||
wstring sDirW = stringtoW( sDir) ;
|
||||
wstring sFileW = sDirW + L"\\*.*" ;
|
||||
|
||||
// ciclo su tutti i file del direttorio
|
||||
_wfinddata_t c_file ;
|
||||
intptr_t hFile ;
|
||||
if ( ( hFile = _wfindfirst( sFileW.c_str(), &c_file)) != -1L) {
|
||||
do {
|
||||
if ( c_file.attrib != _A_SUBDIR) {
|
||||
|
||||
Reference in New Issue
Block a user