Forum Discussion

krainevsky's avatar
krainevsky
Contributor
15 years ago

TC7.50: Fix for aqFileSystem.FindFolders

Hi,



I have the following folders at the <path>( network directory ) : "1.0.0.0", "2.a.b.c" and "update".




When I call this script:

[JScript]

var folders = aqFileSystem.FindFolders(path, "*.*.*.*");

for (var i = 0 ; i < folders.Count; i++)

  Log.Message(folders.Item(i).Name);




I have the following at the log:

1.0.0.0

2.a.b.c

update





instead of "1.0.0.0" and "2.a.b.c".




I think FindFolders method works wrong and if it is so, can we have a fix for this problem?




TC 7.50 Ent.




Thanks is advance

2 Replies

  • Hello Alexander,




    We have reproduced such behavior, and we will investigate it. Unfortunately, we cannot create a fix - it is related to the complexity of the implementation. Currently, I can suggest that you use the '_' character instead of '.' in the folder names and use the "*_*_*_*" pattern to search for the needed folders.