}
use core.string
+use core.conv
use runtime
#local fs :: runtime.platform
full_path_buffer: [512] u8;
for list_directory(path) {
- full_path := string.concat(full_path_buffer, path, "/", it->name());
+ full_path := conv.format(full_path_buffer, "{}{}{}", path, PATH_SEP, it->name());
if it.type == .Directory {
if !remove_directory(full_path) do return false;
path[path_len] = 0;
#ifdef _BH_WINDOWS
- results->data[0] = WASM_I32_VAL(CreateDirectoryA(path));
+ results->data[0] = WASM_I32_VAL(CreateDirectoryA(path, NULL));
return NULL;
#endif
GB_DLL_IMPORT BOOL WINAPI CopyFileW(wchar_t const *old_f, wchar_t const *new_f, BOOL fail_if_exists);
GB_DLL_IMPORT BOOL WINAPI MoveFileW(wchar_t const *old_f, wchar_t const *new_f);
GB_DLL_IMPORT BOOL WINAPI DeleteFileA (char const *path);
-GB_DLL_IMPORT BOOL WINAPI CreateDirectoryA(char const *path);
+GB_DLL_IMPORT BOOL WINAPI CreateDirectoryA(char const *path, SECURITY_ATTRIBUTES *lpSecurityAttributes);
GB_DLL_IMPORT BOOL WINAPI RemoveDirectoryA(char const *path);
GB_DLL_IMPORT BOOL WINAPI MoveFileA (char const *old_path, char const *new_path);