google / google/flatbuffers

[Bug] utils / EnsureDirExists silently ignores errors

Open
#9,022 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
26.5k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

Return values of calls to `_mkdir` and `mkdir` are not checked. They can fail for other reasons (e.g. lack of permissions, incorrect drive letter on Windows) besides that the directory already exists.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.