This function is exposed to users and allows users to specify a particular backend that a directory should be created within.
| 658 | // This function is exposed to users and allows users to specify a particular |
| 659 | // backend that a directory should be created within. |
| 660 | int wasmfs_create_directory(char* path, mode_t mode, backend_t backend) { |
| 661 | static_assert(std::is_same_v<decltype(doMkdir(0, 0, 0)), int>, |
| 662 | "unexpected conversion from result of doMkdir to int"); |
| 663 | return doMkdir(path::parseParent(path), mode, backend); |
| 664 | } |
| 665 | |
| 666 | // TODO: Test this. |
| 667 | int __syscall_mkdirat(int dirfd, const char* path, mode_t mode) { |