File mask with Session.RemoveFiles
Hi Martin,
Something I don't understand:
If I call Session.RemoveFiles with a path like "/myfolder/*.txt"
then it will remove only *.txt files in that folder only (not subfolders). As expected.
Yet if I call with a path like "/myfolder/*.*" then it removes not only all files in that folder, but removes all subfolders too, the same as using "/myfolder/*"
Why is that? How can I remove only all the files in the specified folder without touching the subfolders? What am I missing here?
Something I don't understand:
If I call Session.RemoveFiles with a path like "/myfolder/*.txt"
then it will remove only *.txt files in that folder only (not subfolders). As expected.
Yet if I call with a path like "/myfolder/*.*" then it removes not only all files in that folder, but removes all subfolders too, the same as using "/myfolder/*"
Why is that? How can I remove only all the files in the specified folder without touching the subfolders? What am I missing here?