Fixed crash while application first startup #105

Merged
asmeron merged 1 commits from YanTheKaller/ubl-settings-logging:master into master 10 months ago

@ -1303,6 +1303,9 @@ int yon_file_create(char *path, char *name, int rules){
int yon_file_create_full_path(char *path, int rules){
if (path){
if (access(path,F_OK)){
char *cur_path = yon_char_new(path);
cur_path = yon_char_divide(cur_path,yon_char_find_last(cur_path,'/'));
mkdir(cur_path,0777);
FILE *fl = fopen(path,"w");
if (fl){
chmod(path,rules);

Loading…
Cancel
Save