Created
March 18, 2021 03:02
-
-
Save Senemix29/224e7292763a1df71cad3c948ac91c60 to your computer and use it in GitHub Desktop.
Dummy example class to be shown embed at Medium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class FileUtils { | |
| fun getDirectoryFilesListSize(context: Context, fileDirectory: String): Int { | |
| val directory = File(context.filesDir, fileDirectory) | |
| val fileList = directory.listFiles().orEmpty() | |
| return fileList.size | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment