Hi friends!
Like title says, I need to know how to filter file list returned by File.ListFiles so I choose a mask like MSWindows command prompt. I already created a basic function so you can see Im not lazy see:
Looking forward for your answers! Thanks!
Like title says, I need to know how to filter file list returned by File.ListFiles so I choose a mask like MSWindows command prompt. I already created a basic function so you can see Im not lazy see:
B4X:
Sub ListaArquivos(Pasta As String, Mascara As String) As List
Dim L As List
L.Initialize
L = File.ListFiles(Pasta) 'Like DirInternar or External
Dim i As Int
For i = L.Size - 1 To 0 Step -1
'Pseudo code
'If not in Mask then L.RemoveAt(i)
Next
Return L
End Sub