Modify

Opened 17 years ago

Closed 17 years ago

Last modified 13 years ago

#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 17 years ago.

Download all attachments as: .zip

Change History (7)

by Zedna, 17 years ago

Attachment: _FileListToArray.zip added

comment:1 by TicketCleanup, 17 years ago

Version: 3.3.0.0

Automatic ticket cleanup.

comment:2 by J-Paul Mesnage, 17 years ago

Milestone: 3.3.1.2
Owner: changed from Gary to J-Paul Mesnage
Resolution: Completed
Status: newclosed

Added in version: 3.3.1.2

comment:3 by Valik, 17 years ago

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, 16 years ago

@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, 16 years ago

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, 13 years ago

Milestone: 3.3.1.23.3.9.5
Owner: changed from J-Paul Mesnage 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.