[DEBUG] correct the path in android that does not finished with /
This commit is contained in:
parent
7da5b10f9f
commit
3924f90c4d
@ -997,6 +997,22 @@ void etk::FSNode::updateFileSystemProperty() {
|
||||
}
|
||||
}
|
||||
}
|
||||
// special case of the user does not set tyhe / at the end of the path ...
|
||||
if (m_systemFileName[m_systemFileName.size()-1] != '/') {
|
||||
std::string tmpName = m_systemFileName + '/';
|
||||
//Might be a folder ==> check if it existed in the start files ...
|
||||
for (int iii=0; iii<s_APKArchive->size(); iii++) {
|
||||
std::string filename = s_APKArchive->getName(iii);
|
||||
if (start_with(filename, tmpName) == true) {
|
||||
m_typeNode = etk::typeNode_folder;
|
||||
m_rights.setUserReadable(true);
|
||||
m_rights.setUserRunable(true);
|
||||
TK_DBG_MODE("Find a Folder in APK : '" << m_systemFileName << "'");
|
||||
m_systemFileName += '/';
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
TK_WARNING("File existed ??? in APK : '" << m_systemFileName << "'");
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user