Opened 15 years ago

Closed 15 years ago

Last modified 11 years ago

#966 closed Feature Request (Completed)

_FileListToArray - new flag (4)

Reported by: Zedna Owned by: guinness
Milestone: Component: Standard UDFs
Version: Severity: None
Keywords: Cc:


Here is proposition for change to _FileListToArray(). It's fully backward compatible.

There is new value for $iFlag = 4 --> Return Folder/File names also with full path

Flag values are now checked by BitAnd().

There is also new example included:

$FileList=_FileListToArray(@ScriptDir,"*.au3",1+4); only files (with full path)

I needed this functionality in one of my projects so I have created local modified version of _FileListToArray for myself.
I think this addition can be handy for many people.

I have sent this by PM to Gary as proposition to UDF but he replied to me it would be better in way of ticket here on Track - so here it is :-)

Attachments (1) (1.6 KB) - added by Zedna 15 years ago.

Download all attachments as: .zip

Change History (7)

Changed 15 years ago by Zedna

comment:1 Changed 15 years ago by TicketCleanup

  • Version deleted

Automatic ticket cleanup.

comment:2 Changed 15 years ago by Jpm

  • Milestone set to
  • Owner changed from Gary to Jpm
  • Resolution set to Completed
  • Status changed from new to closed

Added in version:

comment:3 Changed 15 years ago by Valik

This will not be in The changes that came with this turned a 27 line function into a 186 line function. That is not acceptable.

Edit: I know that wasn't part of your initial proposal, Zedna, but never-the-less, when your idea was integrated it came with more than it should have.

comment:4 Changed 14 years ago by Zedna


I think it would be good solution to leave _FileListToArray() as it is: simple function for the most of cases
and add new robust/complex optimized _FileListToArrayEx() for case when basic one is not sufficient.

There is topic on the forum where is such complex function ready to use.

comment:5 Changed 14 years ago by Valik

Zedna, honestly I don't care anymore. Once upon a time it was my suggestion and intent to do exactly as you mention. However, after having to deal with the drama of a developer ignoring everything I said on the subject combined with having to listen to impatient users think their code was ready when it wasn't, I just don't care anymore. There are just too many opinions on how this function should work and when that happens I revert to only listening to my opinion.

comment:6 Changed 11 years ago by guinness

  • Milestone changed from to
  • Owner changed from Jpm to guinness

Added by revision [7361] in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain guinness.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.