Author: Erel
Note that it ignores subfolders.
Note that it ignores subfolders.
B4X:
Sub SizeOfFilesInFolder(f As String) As Long
Dim total As Long
For Each filename As String In File.ListFiles(f)
If File.IsDirectory(f, filename) = False Then
total = total + File.Size(f, filename)
End If
Next
Return total
End Sub