Lines Matching refs:directory
530 String::Utf8Value directory(args[0]);
531 if (*directory == NULL) {
537 if (chdir(*directory) != 0) {
566 static bool CheckItsADirectory(Isolate* isolate, char* directory) {
568 int stat_result = stat(directory, &stat_buf);
580 // error if the directory exists already.
581 static bool mkdirp(Isolate* isolate, char* directory, mode_t mask) {
582 int result = mkdir(directory, mask);
585 return CheckItsADirectory(isolate, directory);
587 char* last_slash = strrchr(directory, '/');
593 if (!mkdirp(isolate, directory, mask)) return false;
595 result = mkdir(directory, mask);
598 return CheckItsADirectory(isolate, directory);
626 String::Utf8Value directory(args[0]);
627 if (*directory == NULL) {
633 mkdirp(args.GetIsolate(), *directory, mask);
644 String::Utf8Value directory(args[0]);
645 if (*directory == NULL) {
651 rmdir(*directory);