Modify

#966 closed Feature Request (Completed)

_FileListToArray - new flag (4)

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

Description

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.

Note:
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)

_FileListToArray.zip (1.6 KB ) - added by Zedna on May 19, 2009 at 4:10:09 PM.

Download all attachments as: .zip

Change History (7)

comment:1 by TicketCleanup, on May 19, 2009 at 6:00:03 PM

Version: 3.3.0.0

Automatic ticket cleanup.

comment:2 by Jpm, on Jul 4, 2009 at 11:55:42 PM

Milestone: 3.3.1.2
Owner: changed from Gary to Jpm
Resolution: Completed
Status: newclosed

Added in version: 3.3.1.2

comment:3 by Valik, on Jul 5, 2009 at 12:56:04 AM

This will not be in 3.3.1.2. 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 by Zedna, on Sep 26, 2009 at 12:02:50 AM

@Valik

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 by Valik, on Sep 26, 2009 at 12:25:48 AM

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 by guinness, on Oct 2, 2012 at 12:22:23 AM

Milestone: 3.3.1.23.3.9.5
Owner: changed from Jpm to guinness

Added by revision [7361] in version: 3.3.9.5

Modify Ticket

Action
as closed The owner will remain guinness.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.