mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-28 15:34:31 +00:00
Refactor file creation logic
This commit is contained in:
parent
42225a5cd9
commit
e021c1d9eb
@ -184,12 +184,10 @@ namespace vfs
|
||||
if (Flags & O_CREAT)
|
||||
{
|
||||
int ret;
|
||||
bool absolute = cwk_path_is_absolute(AbsolutePath);
|
||||
new Node(pcb->CurrentWorkingDirectory,
|
||||
AbsolutePath,
|
||||
NodeType::FILE,
|
||||
cwk_path_is_absolute(AbsolutePath),
|
||||
fs,
|
||||
&ret);
|
||||
AbsolutePath, NodeType::FILE,
|
||||
absolute, fs, &ret);
|
||||
|
||||
if (ret == -EEXIST)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user