Jump to content

FileListToArray for Folders, no FullPath


Recommended Posts

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?

Link to comment
Share on other sites

  • Moderators

@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.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

  • Moderators
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.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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...