Skip to content
Snippets Groups Projects
Commit 5ec61f03 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Fix getFileNameFromPath

parent ac296645
No related branches found
No related tags found
1 merge request!579Fix getFileNameFromPath
Pipeline #16567 passed with stage
in 4 minutes and 4 seconds
......@@ -65,7 +65,7 @@ object FileUtils {
fun onResult(success: Boolean)
}
fun getFileNameFromPath(filePath: String?) = filePath?.substringBeforeLast('/') ?: ""
fun getFileNameFromPath(filePath: String?) = filePath?.substringAfterLast('/') ?: ""
fun getParent(path: String?): String? {
if (path == null || TextUtils.equals("/", path))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment