Home | History | Annotate | Download | only in src

Lines Matching refs:directory

537   String::Utf8Value directory(args[0]);
538 if (*directory == NULL) {
543 if (chdir(*directory) != 0) {
569 static bool CheckItsADirectory(char* directory) {
571 int stat_result = stat(directory, &stat_buf);
583 // error if the directory exists already.
584 static bool mkdirp(char* directory, mode_t mask) {
585 int result = mkdir(directory, mask);
588 return CheckItsADirectory(directory);
590 char* last_slash = strrchr(directory, '/');
596 if (!mkdirp(directory, mask)) return false;
598 result = mkdir(directory, mask);
601 return CheckItsADirectory(directory);
627 String::Utf8Value directory(args[0]);
628 if (*directory == NULL) {
633 mkdirp(*directory, mask);
643 String::Utf8Value directory(args[0]);
644 if (*directory == NULL) {
649 rmdir(*directory);