|
|
@ -1303,6 +1303,9 @@ int yon_file_create(char *path, char *name, int rules){
|
|
|
|
int yon_file_create_full_path(char *path, int rules){
|
|
|
|
int yon_file_create_full_path(char *path, int rules){
|
|
|
|
if (path){
|
|
|
|
if (path){
|
|
|
|
if (access(path,F_OK)){
|
|
|
|
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");
|
|
|
|
FILE *fl = fopen(path,"w");
|
|
|
|
if (fl){
|
|
|
|
if (fl){
|
|
|
|
chmod(path,rules);
|
|
|
|
chmod(path,rules);
|
|
|
|