summaryrefslogtreecommitdiff
path: root/transex3
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2009-04-30 16:06:37 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2009-04-30 16:06:37 +0000
commit16a7d48c6cebf9ddd8ae1ab8f94edfc843c603c1 (patch)
tree812ca59ed6490418cb99527870847ce4f988a1cf /transex3
parent9d08193cd63425003b50e799cdee6526bb2b4f78 (diff)
#i10000# remove silly error messages
Diffstat (limited to 'transex3')
-rw-r--r--transex3/source/directory.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/transex3/source/directory.cxx b/transex3/source/directory.cxx
index 8963e8a238f7..a4a2abc70e0f 100644
--- a/transex3/source/directory.cxx
+++ b/transex3/source/directory.cxx
@@ -186,13 +186,15 @@ void Directory::readDirectory( const rtl::OUString& sFullpath )
if( sFullpath.getLength() < 1 ) return;
rtl::OString sFullpathext = rtl::OUStringToOString( sFullpath , RTL_TEXTENCODING_UTF8 , sFullpath.getLength() ).getStr();
+ //printf("%s\n",sFullpathext.getStr());
const char* path = sFullpathext.getStr();
// stat
- if( lstat( path , &statbuf ) < 0 ){ printf("readerror 1 in Directory::readDirectory"); return; }// error }
+ if( stat( path , &statbuf ) < 0 ){ printf("warning: Can not stat %s" , path ); return; }// error }
- //if( S_ISDIR(statbuf.st_mode ) == 0 && S_ISLNK(statbuf.st_mode )){ printf("readerror 2 in Directory::readDirectory"); return; }// error } return; // not dir
- if( (dir = opendir( path ) ) == NULL ) {printf("readerror in %s \n",path); return; } // error } return; // error
+ if( S_ISDIR(statbuf.st_mode ) == 0 ) { return; }// error } return; // not dir
+
+ if( (dir = opendir( path ) ) == NULL ) {printf("readerror 2 in %s \n",path); return; } // error } return; // error
sFullpathext += rtl::OString( "/" );