Creates all of the folders specified in the array.
428048
function() {
        var items = _utils.getArgArray(arguments);
        if (items.length === 0) {
            throw new Error('no folders specified to create');
        }
        items.forEach(function(item) {
            try {
                _fs.mkdirSync(item);
            } catch (e) {
                // Eat the exception.
            }
        });
    }
111629
def expand_folder(files):
    """"""
    expfiles = []
    for file in files:
        if os.path.isdir(file):
            for dirpath, dirnames, filenames in os.walk(file):
                for filename in filenames:
                    expfiles.append(os.path.join(dirpath, filename))
        else:
            expfiles.append(file)

    for path in expfiles:
        if not os.path.exists(path):
            sys.stderr.write('%s: No such file or directory\n' % path)

    return expfiles
234589
def asset_folders
      folders = []
      app_folders do |app_folder|
        Dir["#{app_folder}/*/assets"].sort.each do |asset_folder|
          folders << yield(asset_folder)
        end
      end

      folders.flatten
    end
331267
public void addSourceFolders(Iterable<File> folders) {
		Assert.notNull(folders, "Folders must not be null");
		synchronized (this.monitor) {
			for (File folder : folders) {
				addSourceFolder(folder);
			}
		}
	}
1165293
protected function createFolders()
    {
        foreach ($this->getFolderStructure() as $folder) {
            $newFolder = $this->twigStringRenderer->renderToString($folder, $this->data);
            $this->fs->mkdir($this->targetPath.DIRECTORY_SEPARATOR.$newFolder, self::DIRECTORY_MODE);

            $msg = '[mkdir] '.$this->targetPath.DIRECTORY_SEPARATOR.$newFolder;
            if ($this->reportingEnabled) {
                $this->report[] =$msg;
            }
        }
    }
1073764
protected function createDirectories()
    {
        if (! $this->files->isDirectory($directory = app_path('Forms/Auth/Passwords'))) {
            $this->files->makeDirectory($directory, 0755, true);
        }

        if (! $this->files->isDirectory($directory = app_path('Http/Controllers/Auth'))) {
            $this->files->makeDirectory($directory, 0755, true);
        }

        if (! $this->files->isDirectory($directory = resource_path('views/auth/passwords'))) {
            $this->files->makeDirectory($directory, 0755, true);
        }

        if (! $this->files->isDirectory($directory = resource_path('views/settings'))) {
            $this->files->makeDirectory($directory, 0755, true);
        }
    }
1330107
public function getFolders()
    {
        if(!isset($this->Folders)){
            $this->Folders = new FolderCollection($this->getContext(),new ResourcePathEntity($this->getContext(),$this->getResourcePath(),"folders"));
        }
        return $this->Folders;
    }
1043477
def do_folder_create(client, args):
    """"""
    for folder_uri in args.uris:
        client.create_folder(folder_uri, recursive=True)
    return True
846930
public function getFolders() {

		$result = [];
		$files = glob($this->path . '*', GLOB_ONLYDIR);

		if($files) {
			foreach($files as $f) {
				$result[] = self::getInstance($f);
			}
		}

		return $result;

	}
677250
function makeDirectories(dirs, callback) {
  var mkdir = function(dir, mkCallback) {
    exec('mkdir -p ' + dir, function(err, stdout, stderr) {
      return mkCallback(err);
    });
  };

  async.forEach(dirs, mkdir, callback);
}
1078958
private function createFolders() {
        foreach ($this->oMetadata->getSchemas() as $valueSchema) {
            if (!is_dir($this->ormFolder . $valueSchema)) {
                $this->fileFolder->mkdir($this->ormFolder . $this->toCamelCase($valueSchema) . DS . 'Entities');
                $this->fileFolder->mkdir($this->ormFolder . $this->toCamelCase($valueSchema) . DS . 'Tables');
            }
        }
        return $this;
    }
1292444
public function createDefaultFolders()
    {
        foreach ($this->config()->default_folders as $class) {
            
            if (!self::find($class)) {
                
                $folder = Injector::inst()->create($class);
                
                $folder->Sort = 0;
                
                $folder->write();
                $folder->copyVersionToStage(Versioned::DRAFT, Versioned::LIVE);
                $folder->flushCache();
                
                DB::alteration_message(sprintf('Creating %s.%s', $class, $folder->Title), 'created');
                
            }
            
        }
    }
936301
public function createDirs()
    {
        if (!is_dir($this->getMediaPath())) {
            mkdir($this->getMediaPath());
        }

        if (!is_dir($this->getThumbnailPath())) {
            mkdir($this->getThumbnailPath());
        }
    }
693346
function createSortyOpts(keys) {
  var result = []
  keys.forEach(function(keyName) {
    result.push({
      name: keyName,
      dir: "asc"
    })
  })
  return result
}
800141
public function create_default_folders()
    {
        $rcube = rcube::get_instance();

        // create default folders if they do not exist
        foreach (self::$folder_types as $type) {
            if ($folder = $rcube->config->get($type . '_mbox')) {
                if (!$this->folder_exists($folder)) {
                    $this->create_folder($folder, true, $type);
                }
                else if (!$this->folder_exists($folder, true)) {
                    $this->subscribe($folder);
                }
            }
        }
    }
1194911
def folder_create(self, foldername=None, parent_key=None,
                      action_on_duplicate=None, mtime=None):
        
        return self.request('folder/create', QueryParams({
            'foldername': foldername,
            'parent_key': parent_key,
            'action_on_duplicate': action_on_duplicate,
            'mtime': mtime
        }))
689462
public static function addFolder(&$array, $folder)
    {
        if (is_array($folder)) {
            foreach ($folder as $item) {
                self::addFolder($array, $item);
            }
        } else {
            if (is_dir($folder) && !in_array($folder, $array)) {
                $array[] = $folder;
            }
        }
    }