Fileops: call BLI_path_slash_native()
in BLI_dir_create_recursive()
Make the Windows version of `BLI_dir_create_recursive()` call `BLI_path_slash_native()` before it tries to handle the path. This should make it possible to call it with non-native path separators. This change was provided by our Windows platform maintainer @LazyDodo in P2414, so I assume he agrees with this change.
This commit is contained in:
@@ -570,6 +570,7 @@ bool BLI_dir_create_recursive(const char *dirname)
|
||||
* blah1/blah2 (without slash) */
|
||||
|
||||
BLI_strncpy(tmp, dirname, sizeof(tmp));
|
||||
BLI_path_slash_native(tmp);
|
||||
BLI_path_slash_rstrip(tmp);
|
||||
|
||||
/* check special case "c:\foo", don't try create "c:", harmless but prints an error below */
|
||||
|
Reference in New Issue
Block a user