Code cleanup: file operations merged into single header, some function names

made less cryptic and changed to indicate if they work on files or directories.
This commit is contained in:
2011-10-22 15:35:49 +00:00
parent c1de5cc838
commit e417e011d5
39 changed files with 137 additions and 191 deletions

View File

@@ -40,9 +40,8 @@ extern "C"
#include "BKE_context.h"
/* make dummy file */
#include "BLI_storage.h"
#include "BLI_path_util.h"
#include "BLI_fileops.h"
#include "BLI_path_util.h"
int collada_import(bContext *C, const char *filepath)
{
@@ -62,7 +61,7 @@ extern "C"
/* annoying, collada crashes if file cant be created! [#27162] */
if(!BLI_exists(filepath)) {
BLI_make_existing_file(filepath); /* makes the dir if its not there */
if(BLI_touch(filepath) == 0) {
if(BLI_file_touch(filepath) == 0) {
return 0;
}
}