[DEV] reorder the list of files
This commit is contained in:
parent
f2b754ddb7
commit
14f878bdd2
@ -352,11 +352,9 @@ static etk::UString SimplifyPathAbstractPath(etk::UString input)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void SortElementList(etk::Vector<etk::FSNode *> &list)
|
void etk::FSNode::SortElementList(etk::Vector<etk::FSNode *> &list)
|
||||||
{
|
{
|
||||||
// TODO : ...
|
etk::Vector<etk::FSNode *> tmpList = list;
|
||||||
/*
|
|
||||||
etk::Vector<ewol::FSNode *> tmpList = list;
|
|
||||||
list.Clear();
|
list.Clear();
|
||||||
for(int32_t iii=0; iii<tmpList.Size(); iii++) {
|
for(int32_t iii=0; iii<tmpList.Size(); iii++) {
|
||||||
if (NULL != tmpList[iii]) {
|
if (NULL != tmpList[iii]) {
|
||||||
@ -364,7 +362,7 @@ static void SortElementList(etk::Vector<etk::FSNode *> &list)
|
|||||||
for(int32_t jjj=0; jjj<list.Size(); jjj++) {
|
for(int32_t jjj=0; jjj<list.Size(); jjj++) {
|
||||||
//EWOL_DEBUG("compare : \""<<*tmpList[iii] << "\" and \"" << *m_listDirectory[jjj] << "\"");
|
//EWOL_DEBUG("compare : \""<<*tmpList[iii] << "\" and \"" << *m_listDirectory[jjj] << "\"");
|
||||||
if (list[jjj]!=NULL) {
|
if (list[jjj]!=NULL) {
|
||||||
if (tmpList[iii]->m_name > list[jjj]->m_name) {
|
if (tmpList[iii]->GetNameFile() > list[jjj]->GetNameFile()) {
|
||||||
findPos = jjj+1;
|
findPos = jjj+1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -373,7 +371,6 @@ static void SortElementList(etk::Vector<etk::FSNode *> &list)
|
|||||||
list.Insert(findPos, tmpList[iii]);
|
list.Insert(findPos, tmpList[iii]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -217,7 +217,8 @@ namespace etk
|
|||||||
int32_t FileRead(void * data, int32_t blockSize, int32_t nbBlock);
|
int32_t FileRead(void * data, int32_t blockSize, int32_t nbBlock);
|
||||||
int32_t FileWrite(void * data, int32_t blockSize, int32_t nbBlock);
|
int32_t FileWrite(void * data, int32_t blockSize, int32_t nbBlock);
|
||||||
bool FileSeek(long int offset, int origin);
|
bool FileSeek(long int offset, int origin);
|
||||||
|
private:
|
||||||
|
void SortElementList(etk::Vector<etk::FSNode *> &list);
|
||||||
};
|
};
|
||||||
|
|
||||||
etk::CCout& operator <<(etk::CCout &os, const etk::FSNode &obj);
|
etk::CCout& operator <<(etk::CCout &os, const etk::FSNode &obj);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user