Clarify that mkdir_if_not_exists
will delete files if the directory exists
#6
Labels
mkdir_if_not_exists
will delete files if the directory exists
#6
In my opinion, it is not obvious that a function named
mkdir_if_not_exists
would delete all the files in the directory if it already exists.https://github.com/erizmr/UM2N/blob/aa0ea6b130dc8eeef945b939c4b1787359e0b0b5/warpmesh/helper/helper.py#L8-L15
It would be a good idea to rename the function, or at least clarify this side-effect in a docstring.
The text was updated successfully, but these errors were encountered: