Modify

Opened 10 years ago

Closed 10 years ago

Last modified 7 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 10 years ago.

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by Zedna

comment:1 Changed 10 years ago by TicketCleanup

  • Version 3.3.0.0 deleted

Automatic ticket cleanup.

comment:2 Changed 10 years ago by Jpm

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

Added in version: 3.3.1.2

comment:3 Changed 10 years ago by Valik

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 Changed 10 years ago by Zedna

@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 Changed 10 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 7 years ago by guinness

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

Added by revision [7361] in version: 3.3.9.5

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

Action
as closed The owner will remain guinness.
Author


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

 
Note: See TracTickets for help on using tickets.