Jump to content
Sign in to follow this  
Rigsel

FileListToArray for Folders, no FullPath

Recommended Posts

Rigsel

Hi everyone

I often use AutoIt for many things, great tool, thanks!

I used FileListToArray to scan folders only and to get the fullpath, as result I get the array of folders in relative path, not fullpath!

Example in code:

_FileListToArray( $sFilePath, '*', 2, true )  ;Returns folders in relative path

_FileListToArray( $sFilePath, '*', 1, true )  ;Returns files in fullpath

I guess there's a bug when asking folders in fullpath, isn't it?

Share this post


Link to post
Share on other sites
Floops

That's pretty weird. I tried your example and it gave me the full paths in both scenarios.

 

Did you try it with _FileListToArrayRec ?

Share this post


Link to post
Share on other sites
JLogan3o13

@Rigsel is this happening regardless of the filepath you put in? What version of AutoIt and OS are you running? I am seeing full path in both scenarios with latest version, so not a bug.


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
Rigsel

I tested it on a remote PC that I can't use now. it's a Windows 7 64bit, AutoIt 32bit (I'll check the version) and $sFilePath is a network folder.

On my PC it works fine.

Thanks for your help anyway!  I'll update you.

 

Share this post


Link to post
Share on other sites
JLogan3o13
7 hours ago, Rigsel said:

and $sFilePath is a network folder.

Information that would have been helpful in your initial explanation. I just tested on Windows 7 and 10 with network paths, and see the behavior I would expect.


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
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
Sign in to follow this  

×