added: mount points are read from db: /etc/fstab
changed: mount points parser allows empty lines (with some white characters) git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@518 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -56,6 +56,7 @@ void Dirs::ReadDirs()
|
||||
|
||||
db.GetDirs(dir_table);
|
||||
CheckRootDir();
|
||||
dir_table.FindSpecialFolders();
|
||||
}
|
||||
|
||||
|
||||
@@ -294,6 +295,17 @@ return &(*root);
|
||||
}
|
||||
|
||||
|
||||
Item * Dirs::GetEtcDir()
|
||||
{
|
||||
DirContainer::Iterator etc = dir_table.GetEtc();
|
||||
|
||||
if( etc == dir_table.End() )
|
||||
return 0;
|
||||
|
||||
return &(*etc);
|
||||
}
|
||||
|
||||
|
||||
Item * Dirs::GetDir(const std::string & name, long parent)
|
||||
{
|
||||
DirContainer::ParentIterator i = dir_table.FindFirstParent(parent);
|
||||
|
||||
Reference in New Issue
Block a user