|
|
@ -859,7 +859,7 @@ KLocalDirReadJob::startReading()
|
|
|
|
struct stat statInfo;
|
|
|
|
struct stat statInfo;
|
|
|
|
TQString dirName = _dir->url();
|
|
|
|
TQString dirName = _dir->url();
|
|
|
|
|
|
|
|
|
|
|
|
if ( ( _diskDir = opendir( dirName ) ) )
|
|
|
|
if ( ( _diskDir = opendir( dirName.local8Bit() ) ) )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_tree->sendProgressInfo( dirName );
|
|
|
|
_tree->sendProgressInfo( dirName );
|
|
|
|
_dir->setReadState( KDirReading );
|
|
|
|
_dir->setReadState( KDirReading );
|
|
|
@ -873,7 +873,7 @@ KLocalDirReadJob::startReading()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQString fullName = dirName + "/" + entryName;
|
|
|
|
TQString fullName = dirName + "/" + entryName;
|
|
|
|
|
|
|
|
|
|
|
|
if ( lstat( fullName, &statInfo ) == 0 ) // lstat() OK
|
|
|
|
if ( lstat( fullName.local8Bit(), &statInfo ) == 0 ) // lstat() OK
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ( S_ISDIR( statInfo.st_mode ) ) // directory child?
|
|
|
|
if ( S_ISDIR( statInfo.st_mode ) ) // directory child?
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -957,7 +957,7 @@ KLocalDirReadJob::stat( const KURL & url,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
struct stat statInfo;
|
|
|
|
struct stat statInfo;
|
|
|
|
|
|
|
|
|
|
|
|
if ( lstat( url.path(), &statInfo ) == 0 ) // lstat() OK
|
|
|
|
if ( lstat( url.path().local8Bit(), &statInfo ) == 0 ) // lstat() OK
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQString name = parent ? url.filename() : url.path();
|
|
|
|
TQString name = parent ? url.filename() : url.path();
|
|
|
|
|
|
|
|
|
|
|
|