Fix creat
This commit is contained in:
parent
b265dd9313
commit
27057f8c82
@ -108,7 +108,7 @@ int CryDevice::createAndOpenFile(const bf::path &path, mode_t mode) {
|
|||||||
// This is slow. Improve!
|
// This is slow. Improve!
|
||||||
auto dir = LoadDir(path.parent_path());
|
auto dir = LoadDir(path.parent_path());
|
||||||
auto file = dir->createFile(path.filename().native(), mode);
|
auto file = dir->createFile(path.filename().native(), mode);
|
||||||
return openFile(*file, O_CREAT | O_WRONLY | O_TRUNC);
|
return openFile(*file, O_WRONLY | O_TRUNC);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CryDevice::mkdir(const bf::path &path, mode_t mode) {
|
void CryDevice::mkdir(const bf::path &path, mode_t mode) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user