[DEV] add getting real path of the file node
This commit is contained in:
parent
445d2cf41b
commit
2c649d3741
@ -872,6 +872,10 @@ etk::UString etk::FSNode::GetNameFolder(void) const
|
||||
}
|
||||
return "";
|
||||
}
|
||||
etk::UString etk::FSNode::GetFileSystemName(void) const
|
||||
{
|
||||
return m_systemFileName;
|
||||
}
|
||||
|
||||
etk::UString etk::FSNode::GetName(void) const
|
||||
{
|
||||
@ -1266,7 +1270,7 @@ etk::FSNode etk::FSNode::FolderGetParent(void)
|
||||
return tmpp;
|
||||
}
|
||||
|
||||
void etk::FSNode::FolderGetRecursiveFiles(etk::Vector<etk::UString>& output)
|
||||
void etk::FSNode::FolderGetRecursiveFiles(etk::Vector<etk::UString>& output, bool recursiveEnable)
|
||||
{
|
||||
#ifdef __TARGET_OS__Android
|
||||
if( m_type == etk::FSN_TYPE_DATA
|
||||
@ -1315,7 +1319,9 @@ void etk::FSNode::FolderGetRecursiveFiles(etk::Vector<etk::UString>& output)
|
||||
output.PushBack(tmpVal);
|
||||
}
|
||||
if(tmpEmement->GetNodeType() == etk::FSN_FOLDER) {
|
||||
tmpEmement->FolderGetRecursiveFiles(output);
|
||||
if (true==recursiveEnable) {
|
||||
tmpEmement->FolderGetRecursiveFiles(output);
|
||||
}
|
||||
}
|
||||
delete(tmpEmement);
|
||||
tmpEmement = NULL;
|
||||
|
@ -151,11 +151,6 @@ namespace etk
|
||||
* @brief Update the internal data of the right type, and times
|
||||
*/
|
||||
void UpdateFileSystemProperty(void);
|
||||
/**
|
||||
* @brief Get the Generate FileSystem name
|
||||
* @return the requested filename
|
||||
*/
|
||||
etk::UString GetFileSystemName(void) const;
|
||||
/**
|
||||
* @brief Common set name of the Node (if the user decide to change the node selection
|
||||
* @param[in] newName Name of the Node
|
||||
@ -205,6 +200,11 @@ namespace etk
|
||||
* @return false : action not done
|
||||
*/
|
||||
void SetName(const etk::UString& newName);
|
||||
/**
|
||||
* @brief Get the Generate FileSystem name
|
||||
* @return the requested filename
|
||||
*/
|
||||
etk::UString GetFileSystemName(void) const;
|
||||
/**
|
||||
* @brief Get the current folder of the Node. (file system name)
|
||||
* @return the common name define (like /xxxxx/xxxxx/ or c:/xxxxx/xxxxx/)
|
||||
@ -334,8 +334,9 @@ namespace etk
|
||||
/**
|
||||
* @brief Get all the File inside a Folder (done recursively)
|
||||
* @param[out] output List of all the File names (You must clear it before set it in)
|
||||
* @param[in] recursiveEnable Activate the recursive mode (enable by default)
|
||||
*/
|
||||
void FolderGetRecursiveFiles(etk::Vector<etk::UString>& output);
|
||||
void FolderGetRecursiveFiles(etk::Vector<etk::UString>& output, bool recursiveEnable=true);
|
||||
/**
|
||||
* @brief Check if the file have an extention ( ***.ccc)
|
||||
* @return true The file have an extention.
|
||||
|
Loading…
x
Reference in New Issue
Block a user