Jump to content

_FileListToArray Limit?


 Share

Recommended Posts

The script:

#include 
#include 

$Folder = @ScriptDir & '\Roms'
$Files = _FileListToArray($Folder, '*.*')
_ArrayDisplay($Files)

My problem is that when I view the display everything works fine up to row 3998 and then it combines the row with the Col 0

Example:

Row Col 0

3998 Faial

3999FairLight

is this a limitation to _FileListToArray or perhaps something I'm doing wrong.

Link to comment
Share on other sites

Hi, seems odd, I just tested with 5000 dummy zip files and I didn't seem to have that problem you described..

#include<File.au3>
#include<Array.au3>

$TestDir = @ScriptDir & "\Test5000"
DirCreate($TestDir)
For $i = 1 To 5000
    _FileCreate($TestDir & "\Rom" & StringFormat("%04d", $i) & ".zip")
Next    
$FL2A = _FileListToArray($TestDir, "*", 1)
_ArrayDisplay($FL2A, "Array Display 5000 Roms Test")
DirRemove($TestDir, 1)

cheers

Link to comment
Share on other sites

Yep tested with 5000 dummy files and 5000 folders, I still don't get the quirks that AcidCorps is having

#include<File.au3>
#include<Array.au3>

$TestDir = @ScriptDir & "\Test10000"
DirCreate($TestDir)
For $i = 1 To 5000
    DirCreate($TestDir & "\TestDir" & StringFormat("%04d", $i))
    _FileCreate($TestDir & "\Rom" & StringFormat("%04d", $i) & ".zip")
Next   
$FL2A = _FileListToArray($TestDir, "*", 0)
_ArrayDisplay($FL2A, "Array Display 5000 files & 5000 folders Test")
DirRemove($TestDir, 1)

Cheers

Edited by smashly
Link to comment
Share on other sites

I did a _FileWriteFromArray and it wrote the file fine with all files so I'm wondering, maybe it's an issue with _ArrayDisplay?

Read the documentation on beta _ArrayDisplay. If you want to show more then 4000 entries you need to use _ArrayDisplay properply :P

Edit. never mind it seems -1 is used by default

Edited by MadBoy

My little company: Evotec (PL version: Evotec)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...