Fix the ignored exceptional return value by adding an IfStatement to â¦
â¦check the return value.
This statement returns a value that is not checked.
The return value should be checked since it can indicate an unusual or unexpected function execution.
The statement returns false if the destination directory could not be successfully created (rather than throwing an Exception).
If you don't check the result, you won't notice if the statement signals an unexpected behavior by returning an atypical return value.
You can merge this pull request into a Git repository by running: