file icon indicating copy to clipboard operation
file copied to clipboard

EIO createDirectoryRecursively() errors if it exists

Open Nadyita opened this issue 2 years ago • 0 comments

When I'm using the EIO driver, calling yield filesystem()->createDirectoryRecursively("/tmp"); errors out, while the BlockingDriver returns new Success(). It would be nice if they behave identical, so we don't have to wrap our calls in exists-checks.

On a related note, it took me very long to find this error, because the EIO error-messages seem to get mixed up. The actual error I got was 'No such file or directory', but when trying to reproduce the problem, I got the correct 'File exists' error. I will try to find a minimum example to reproduce this.

Nadyita avatar Jun 06 '22 08:06 Nadyita