Jump to content

"_FileListToArray" with more than one "wildcard"


Recommended Posts

Hello,

I use "_FileListToArray" function to check if a folder contains files with a given extension ("*.mp3")

but finally, i want to check if the folder contains audio files ("*.mp3|*.wma|*.wav|*.ogg ...)

i'm sure there is a better way than to use a function per extension on each folder no ? so i can't find this way :P

So ... if you can help me ....

Link to comment
Share on other sites

use file list to arraywith "*.*" then...

$file_list = stringright($array_of_files, 4)
if $file_list = ".mp3" or $file_list = ".wav" or.....


or...............................

if StringInStr($file_list, ".mp3") Or StringInStr($file_list, ".wav") Or StringInStr($file_list, ".wma") Then
; do what you want
EndIf

8)

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...