author | llornkcor <llornkcor> | 2002-05-04 22:38:02 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-05-04 22:38:02 (UTC) |
commit | a59ee560e5a170d124838c4e2ce7e6af0102aa2e (patch) (unidiff) | |
tree | 144caabfb34b165a3d3208e47a8a81ce70fcd8af | |
parent | d510e5a69762c8452b9d7b3d8122bc9fa85ed8b3 (diff) | |
download | opie-a59ee560e5a170d124838c4e2ce7e6af0102aa2e.zip opie-a59ee560e5a170d124838c4e2ce7e6af0102aa2e.tar.gz opie-a59ee560e5a170d124838c4e2ce7e6af0102aa2e.tar.bz2 |
buf gix
-rw-r--r-- | noncore/net/opieftp/opieftp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp index 0b88a35..7ca3fff 100644 --- a/noncore/net/opieftp/opieftp.cpp +++ b/noncore/net/opieftp/opieftp.cpp | |||
@@ -585,49 +585,49 @@ bool OpieFtp::remoteChDir(const QString &dir) | |||
585 | // QCopEnvelope ( "QPE/System", "notBusy()" ); | 585 | // QCopEnvelope ( "QPE/System", "notBusy()" ); |
586 | return FALSE; | 586 | return FALSE; |
587 | } | 587 | } |
588 | // QCopEnvelope ( "QPE/System", "notBusy()" ); | 588 | // QCopEnvelope ( "QPE/System", "notBusy()" ); |
589 | return TRUE; | 589 | return TRUE; |
590 | } | 590 | } |
591 | 591 | ||
592 | void OpieFtp::populateLocalView() | 592 | void OpieFtp::populateLocalView() |
593 | { | 593 | { |
594 | Local_View->clear(); | 594 | Local_View->clear(); |
595 | currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); | 595 | currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); |
596 | currentDir.setMatchAllDirs(TRUE); | 596 | currentDir.setMatchAllDirs(TRUE); |
597 | currentDir.setNameFilter(filterStr); | 597 | currentDir.setNameFilter(filterStr); |
598 | QString fileL, fileS, fileDate; | 598 | QString fileL, fileS, fileDate; |
599 | bool isDir=FALSE; | 599 | bool isDir=FALSE; |
600 | const QFileInfoList *list = currentDir.entryInfoList( /*QDir::All*/ /*, QDir::SortByMask*/); | 600 | const QFileInfoList *list = currentDir.entryInfoList( /*QDir::All*/ /*, QDir::SortByMask*/); |
601 | QFileInfoListIterator it(*list); | 601 | QFileInfoListIterator it(*list); |
602 | QFileInfo *fi; | 602 | QFileInfo *fi; |
603 | while ( (fi=it.current()) ) { | 603 | while ( (fi=it.current()) ) { |
604 | if (fi->isSymLink() ){ | 604 | if (fi->isSymLink() ){ |
605 | QString symLink=fi->readLink(); | 605 | QString symLink=fi->readLink(); |
606 | // qDebug("Symlink detected "+symLink); | 606 | // qDebug("Symlink detected "+symLink); |
607 | QFileInfo sym( symLink); | 607 | QFileInfo sym( symLink); |
608 | fileS.sprintf( "%10li", sym.size() ); | 608 | fileS.sprintf( "%10li", sym.size() ); |
609 | fileL.sprintf( "%s -> %s", sym.fileName().data(),sym.absFilePath().data() ); | 609 | fileL.sprintf( "%s -> %s", fi->fileName().data(),sym.absFilePath().data() ); |
610 | fileDate = sym.lastModified().toString(); | 610 | fileDate = sym.lastModified().toString(); |
611 | } else { | 611 | } else { |
612 | // qDebug("Not a dir: "+currentDir.canonicalPath()+fileL); | 612 | // qDebug("Not a dir: "+currentDir.canonicalPath()+fileL); |
613 | fileS.sprintf( "%10li", fi->size() ); | 613 | fileS.sprintf( "%10li", fi->size() ); |
614 | fileL.sprintf( "%s",fi->fileName().data() ); | 614 | fileL.sprintf( "%s",fi->fileName().data() ); |
615 | fileDate= fi->lastModified().toString(); | 615 | fileDate= fi->lastModified().toString(); |
616 | if( QDir(QDir::cleanDirPath(currentDir.canonicalPath()+"/"+fileL)).exists() ) { | 616 | if( QDir(QDir::cleanDirPath(currentDir.canonicalPath()+"/"+fileL)).exists() ) { |
617 | fileL+="/"; | 617 | fileL+="/"; |
618 | isDir=TRUE; | 618 | isDir=TRUE; |
619 | // qDebug( fileL); | 619 | // qDebug( fileL); |
620 | } | 620 | } |
621 | } | 621 | } |
622 | if(fileL !="./" && fi->exists()) { | 622 | if(fileL !="./" && fi->exists()) { |
623 | item= new QListViewItem( Local_View,fileL, fileDate, fileS ); | 623 | item= new QListViewItem( Local_View,fileL, fileDate, fileS ); |
624 | QPixmap pm; | 624 | QPixmap pm; |
625 | 625 | ||
626 | if(isDir || fileL.find("/",0,TRUE) != -1) { | 626 | if(isDir || fileL.find("/",0,TRUE) != -1) { |
627 | if( !QDir( fi->filePath() ).isReadable()) | 627 | if( !QDir( fi->filePath() ).isReadable()) |
628 | pm = Resource::loadPixmap( "lockedfolder" ); | 628 | pm = Resource::loadPixmap( "lockedfolder" ); |
629 | else | 629 | else |
630 | pm= Resource::loadPixmap( "folder" ); | 630 | pm= Resource::loadPixmap( "folder" ); |
631 | item->setPixmap( 0,pm ); | 631 | item->setPixmap( 0,pm ); |
632 | } else { | 632 | } else { |
633 | if( !fi->isReadable() ) | 633 | if( !fi->isReadable() ) |