Skip to main content

Hi, for some time we have a problem that happens randomly. 

Some of our programs remove all files in the execution directory.

We has check all de call system that has a "rm " loking for a worng parameter in the call , but all the call are correct.

My question is:

is there a way in which CBL_DELETE_FILE function could delete all the files in a dirtectory

Hi, for some time we have a problem that happens randomly. 

Some of our programs remove all files in the execution directory.

We has check all de call system that has a "rm " loking for a worng parameter in the call , but all the call are correct.

My question is:

is there a way in which CBL_DELETE_FILE function could delete all the files in a dirtectory

CBL_DELETE_FILE does not allow for wildcard characters so it would not be possible to delete more than one file at a time.

Perhaps if you are using CBL_DELETE_FILE in a loop where you are using the CBL_SCAN_READ routine to return a list of filenames then it might be possible but this would not be unexpected behavior.