Anonymous avatar Anonymous committed 8007783

#i10000# remove silly error messages

Comments (0)

Files changed (1)

transex3/source/directory.cxx

     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( "/" );
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.