﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
834	Request for _FileListToArray() to offer additional options	Rudi		"Hi.

It would be nice, if the native _FileListToArray() would offer the options of a UDF I found quite a time ago in the AI forum.

Authors: randallc ; modified from SolidSnake and big_daddy and SmoKE_N and GEOsoft!
--------------- _FileListToArrayFaster1e.au3 --------------
;  _FileListToArrayFaster1e.au3
#include-once
#include<array.au3>;for _ArrayToString() and _ArrayInsert()
;===============================================================================
;
; Description:      lists all files and folders in a specified path
; Syntax:           _FileListToArray($s_Path, $s_Filter = ""*"", $i_Flag = 0)
; Parameter(s):    	$s_Path = Path to generate filelist for
;					$s_Filter = The filter to use. Search the Autoit3 manual for the word ""WildCards"" For details
;                   $i_Flag = determines whether to return file or folders or both
;						$i_Flag=0(Default) Return both files and folders
;                       $i_Flag=1 Return files Only
;						$i_Flag=2 Return Folders Only
;					$i_Recurse = Indicate whether recursion to subfolders required
;						$i_Recurse=0(Default) No recursion to subfolders
;                       $i_Recurse=1 recursion to subfolders
;					$i_BaseDir = Indicate whether base directory name included in returned elements
;						$i_BaseDir=0 base directory name not included
;                       $i_BaseDir=1 (Default) base directory name included
;					$s_Exclude= The Exclude filter to use.  ""WildCards"" For details
;
; Requirement(s):   None
; Return Value(s):  On Success - Returns an array containing the list of files and folders in the specified path
;                        On Failure - Returns the an empty string """" if no files are found and sets @Error on errors
;						@Error=1 Path not found or invalid
;						@Error=2 Invalid $s_Filter
;                       @Error=3 Invalid $i_Flag
;                 @Error=4 No File(s) Found
;
; Author(s):        randallc <randallc@ozemail.com.au>; modified from SolidSnake and big_daddy and SmoKE_N and GEOsoft!
; Note(s):			The array returned is one-dimensional and is made up as follows:
;					$array[0] = Number of Files\Folders returned
;					$array[1] = 1st File\Folder
;					$array[2] = 2nd File\Folder
;					$array[3] = 3rd File\Folder
;					$array[n] = nth File\Folder
;
;===============================================================================
[snip]
--------------- _FileListToArrayFaster1e.au3 --------------

Searching the Autoit Forum for that UDF doesn't return any results right now, so I'll attach that UDF with this feature request.

Regards, Rudi."	Feature Request	closed		AutoIt		None	Rejected		
