rmnrdi
6 years agoContributor
FindFiles not working
This line of code is not finding a file and returning null.
foundFiles = aqFileSystem.FindFiles("C:\\Temp\\" , "*.rxi");
//I'm using javascript, hence the escape \
Here is a picture of a file in that folder:
That code is practically copied and pasted from here:
I also tried a folder on my desktop with the same results.
Anyone had this issue?
Any help would be greatly appreciated.
I did use the same code and .rxi extension file. It did work for me, please refer below...
function FileFinder() { var foundFiles, aFile; foundFiles = aqFileSystem.FindFiles("E:\\UsersDirectory\\", "*.rxi"); if (!strictEqual(foundFiles, null)) while (foundFiles.HasNext()) { aFile = foundFiles.Next(); Log.Message(aFile.Name); } else Log.Message("No files were found."); }