Rigsel Posted May 9, 2017 Posted May 9, 2017 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?
Floops Posted May 9, 2017 Posted May 9, 2017 That's pretty weird. I tried your example and it gave me the full paths in both scenarios. Did you try it with _FileListToArrayRec ?
Moderators JLogan3o13 Posted May 9, 2017 Moderators Posted May 9, 2017 @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!
Rigsel Posted May 10, 2017 Author Posted May 10, 2017 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.
Moderators JLogan3o13 Posted May 10, 2017 Moderators Posted May 10, 2017 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now