Add kListAllNoRoot type to listDir() to handle recent file class changes, on file system backends which use _isPseudoRoot

svn-id: r21449
This commit is contained in:
Travis Howell 2006-03-25 10:39:05 +00:00
parent 737c52590b
commit a98aea6efd
4 changed files with 5 additions and 4 deletions

View File

@ -99,7 +99,8 @@ public:
typedef enum { typedef enum {
kListFilesOnly = 1, kListFilesOnly = 1,
kListDirectoriesOnly = 2, kListDirectoriesOnly = 2,
kListAll = 3 kListAllNoRoot = 3,
kListAll = 4
} ListMode; } ListMode;
virtual ~AbstractFilesystemNode() {} virtual ~AbstractFilesystemNode() {}

View File

@ -109,7 +109,7 @@ FSList SymbianFilesystemNode::listDir(ListMode mode) const {
assert(_isDirectory); assert(_isDirectory);
FSList myList; FSList myList;
if (_isPseudoRoot) { if (_isPseudoRoot && mode != kListAllNoRoot) {
// Drives enumeration // Drives enumeration
RFs fs = CEikonEnv::Static()->FsSession(); RFs fs = CEikonEnv::Static()->FsSession();
TInt driveNumber; TInt driveNumber;

View File

@ -174,7 +174,7 @@ FSList WindowsFilesystemNode::listDir(ListMode mode) const {
FSList myList; FSList myList;
if (_isPseudoRoot) { if (_isPseudoRoot && mode != kListAllNoRoot) {
#ifndef _WIN32_WCE #ifndef _WIN32_WCE
// Drives enumeration // Drives enumeration
TCHAR drive_buffer[100]; TCHAR drive_buffer[100];

View File

@ -159,7 +159,7 @@ void File::addDefaultDirectoryRecursive(const String &directory, int level, int
baseLen++; baseLen++;
} }
FSList fslist(dir.listDir(FilesystemNode::kListAll)); FSList fslist(dir.listDir(FilesystemNode::kListAllNoRoot));
for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) { for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) {
if (file->isDirectory()) { if (file->isDirectory()) {