khun
6 years agoNew Contributor
DeleteFolder doesn't work
Hi!
We try this (with TC 12.6) to empty a temporary folder with testdata before running each test:
if aqFileSystem.Exists(Spath): aqFileSystem.DeleteFolder(Spath, True)
but Test...
- 6 years ago
OK, so someone else in the company just found the problem: if the folder is open in e.g. Windows Explorer, you get this message! All files and folders in the folder are deleted, but the folder itself is not. And TC gives an error about the folder not being empty.