Fix path copy error and add more logs. (#10324)
Since we didn't copy the null terminator to temp_filepath, dirname could return the wrong result.
Please register or sign in to comment
Since we didn't copy the null terminator to temp_filepath, dirname could return the wrong result.