aqFile* Exists not find application-created folder
- 5 years ago
thebick wrote:
Not sure I understand what you mean.
When the application creates the folder (and a lot of sub-folders), I can see it easily in File Explorer -- just not via TC.
I do not have access to source code, so I can't change how it behaves.
Or are you suggesting something else?
The suggestion is, as mentioned, system delay time. Consider Button click happens and then the next lines of code execute almost immediately. That might not be enough time to find the folder in the Windows file system (which is what aqFileSystem essentially is... a TC wrapper around around the FileSystem object from Microsoft). So, perhaps a "delay" time of some sort... maybe a while loop to wait until either the folder exists OR you reach a maximum timeout. Obviously, ParentDir exists by the time you get to creating bogus folder otherwise bogus folder wouldn't be found... so, there's a processing time there that needs to be accounted for.