mirror of
				https://github.com/SimpleMobileTools/Simple-File-Manager.git
				synced 2025-06-05 22:09:15 +02:00 
			
		
		
		
	make sure we dont trim out the slash of root folder
This commit is contained in:
		| @@ -190,7 +190,10 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener { | ||||
|     } | ||||
|  | ||||
|     private fun getRootItemsOf(path: String, callback: (items: ArrayList<FileDirItem>) -> Unit) { | ||||
|         RootHelpers().getFiles(activity as SimpleActivity, path.trimEnd('/'), callback) | ||||
|         var wantedPath = path.trimEnd('/') | ||||
|         if (wantedPath.isEmpty()) | ||||
|             wantedPath = "/" | ||||
|         RootHelpers().getFiles(activity as SimpleActivity, wantedPath, callback) | ||||
|     } | ||||
|  | ||||
|     private fun getChildren(file: File): Int { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user