Forum Discussion

rocketman's avatar
rocketman
Frequent Visitor
10 years ago

Can you create a temporary test log folder and conditionally append it to the log or discard it?

I want to create a test log folder that *might* exist, but most likely won't, run some functions that might generate log errors, and only append the folder to the log if errors were generated; otherwise, dozens of empty folders are appended to the log. I already have a way to determine whether errors were found during the function call. I just need a way to delete the folder (NOT append it to the test log) based on a condition.

No RepliesBe the first to reply