#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)
Change History (7)
by , 17 years ago
| Attachment: | _FileListToArray.zip added |
|---|
comment:1 by , 17 years ago
| Version: | 3.3.0.0 |
|---|
comment:2 by , 17 years ago
| Milestone: | → 3.3.1.2 |
|---|---|
| Owner: | changed from to |
| Resolution: | → Completed |
| Status: | new → closed |
Added in version: 3.3.1.2
comment:3 by , 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 , 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 , 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 , 13 years ago
| Milestone: | 3.3.1.2 → 3.3.9.5 |
|---|---|
| Owner: | changed from to |
Added by revision [7361] in version: 3.3.9.5

Automatic ticket cleanup.