diff options
author | Kyusung Cho <ks0128.cho@samsung.com> | 2013-06-21 18:50:55 +0900 |
---|---|---|
committer | Kyusung Cho <ks0128.cho@samsung.com> | 2013-06-21 18:50:55 +0900 |
commit | 9b8acd13cce79b79424321e5b91c2d4a4378a98c (patch) | |
tree | 5ceb11f25200a9ed7c73ba312ebea570e107540c | |
parent | 51133266b188bd7460629af51462d1628d229c3f (diff) | |
download | QrCodeGenerator-9b8acd13cce79b79424321e5b91c2d4a4378a98c.tar.gz QrCodeGenerator-9b8acd13cce79b79424321e5b91c2d4a4378a98c.tar.bz2 QrCodeGenerator-9b8acd13cce79b79424321e5b91c2d4a4378a98c.zip |
fix N_SE-42558
Change-Id: I6567b38b4a533c89a6110b30716a814a930b4adc
Signed-off-by: Kyusung Cho <ks0128.cho@samsung.com>
-rw-r--r-- | project/src/FileManagerForm.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/project/src/FileManagerForm.cpp b/project/src/FileManagerForm.cpp index fae7561..30eebe9 100644 --- a/project/src/FileManagerForm.cpp +++ b/project/src/FileManagerForm.cpp @@ -299,7 +299,10 @@ FileManagerForm::GetDirs(Tizen::Base::String dirPath) Tizen::Io::DirEntry dirEntry = pDirEnum->GetCurrentDirEntry(); if (CheckExt(dirEntry.GetName()) || dirEntry.IsDirectory()) { - __files.Add(dirEntry.GetName()); + if(dirEntry.GetName().CompareTo("..") == 0 || (Tizen::Io::File::GetAttributes(dirPath + "/" + dirEntry.GetName(), fileAtt) == E_SUCCESS && !fileAtt.IsHidden())) + { + __files.Add(dirEntry.GetName()); + } } } @@ -309,7 +312,12 @@ FileManagerForm::GetDirs(Tizen::Base::String dirPath) __files.Remove("."); - if (dirPath.CompareTo(ROOT_PATH) == 0) + String rootPath = ROOT_PATH; + if (rootPath.EndsWith("/")) + { + rootPath.Remove(rootPath.GetLength() - 1, 1); + } + if (dirPath.CompareTo(rootPath) == 0) { __files.Remove(".."); } |