mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Log error when mkdir() fails
This commit is contained in:
@@ -837,7 +837,8 @@ namespace path
|
||||
if(path != NULL_STR && !exists(path))
|
||||
{
|
||||
make_dir(parent(path));
|
||||
mkdir(path.c_str(), S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IWGRP|S_IXGRP|S_IROTH|S_IWOTH|S_IXOTH);
|
||||
if(mkdir(path.c_str(), S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IWGRP|S_IXGRP|S_IROTH|S_IWOTH|S_IXOTH) == -1)
|
||||
perror(text::format("mkdir(“%s”)", path.c_str()).c_str());
|
||||
}
|
||||
return exists(path) && info(resolve(path)) & flag::directory;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user