876 char *out = getres->path; |
876 char *out = getres->path; |
877 |
877 |
878 if(res->iscollection) { |
878 if(res->iscollection) { |
879 printf("get: %s\n", res->path); |
879 printf("get: %s\n", res->path); |
880 |
880 |
881 mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH; |
881 int ret = sys_mkdir(out); |
882 int ret = util_mkdir(out, mode); |
|
883 if(ret != 0 && errno != EEXIST) { |
882 if(ret != 0 && errno != EEXIST) { |
884 fprintf(stderr, "Cannot create directory '%s': ", out); |
883 fprintf(stderr, "Cannot create directory '%s': ", out); |
885 perror(""); |
884 perror(""); |
886 return 1; |
885 return 1; |
887 } |
886 } |