Adds the seed directories defined in $seedDirs to the publish procedure.
Can be overriden to adjust default functionality
517442
protected function bootSeeds()
    {
        if (isset($this->dir) and isset($this->seedDirs) and is_array($this->seedDirs)) {
            foreach ($this->seedDirs as $dirPath) {
                $this->publishes([ $this->getDatabasePath($dirPath) => database_path($this->seedsDestinationPath) ], 'seeds');
            }
        }
    }
416591
public static void updateTmpDirectoriesInConfiguration(
			Configuration configuration,
			@Nullable String defaultDirs) {
		if (configuration.contains(CoreOptions.TMP_DIRS)) {
			LOG.info("Overriding Fink's temporary file directories with those " +
				"specified in the Flink config: {}", configuration.getValue(CoreOptions.TMP_DIRS));
		} else if (defaultDirs != null) {
			LOG.info("Setting directories for temporary files to: {}", defaultDirs);
			configuration.setString(CoreOptions.TMP_DIRS, defaultDirs);
			configuration.setBoolean(USE_LOCAL_DEFAULT_TMP_DIRS, true);
		}
	}
775302
function addToPath(directory) {
  var srcs = process.env.PATH.split(delimiter);
  if (srcs.indexOf(directory) === -1) {
    srcs.unshift(directory);
    process.env.PATH = srcs.join(delimiter);
    debug('added `%s` to $PATH and its now `%s`',
      directory, process.env.PATH);
  }
}
42257
private function publishFiles()
	{
		if ($this->isLaravel5())
		{
			#CONFIG
			if (file_exists($configFile = $this->__DIR__.'/../../../config/config.php'))
			{
				$publish_path = 'config/vendor/'.$this->packageNameSpace.DIRECTORY_SEPARATOR.'config.php';
				$this->publishes([$configFile => base_path($publish_path) ],'config');
			}
			else
			{
				if (file_exists($configFile = $this->__DIR__.'/config/config.php'))
				{
					$publish_path = 'config/vendor/'.$this->packageNameSpace.DIRECTORY_SEPARATOR.'config.php';
					$this->publishes([$configFile => base_path($publish_path) ],'config');
				}
			}
			#VIEWS
			if (file_exists($viewsPath = $this->__DIR__.'/../../../resources/views/'))
			{
				$publish_path = 'resources/views/vendor/'.$this->packageNameSpace;
				$this->publishes([$viewsPath => base_path($publish_path) ],'views');
			}
			else
			{
				if (file_exists($viewsPath = $this->__DIR__.'/resources/views/'))
				{
					$publish_path = 'resources/views/vendor/'.$this->packageNameSpace;
					$this->publishes([$viewsPath => base_path($publish_path) ],'views');
				}
			}
			#LANGUAGES
			if (file_exists($langsPath = $this->__DIR__.'/../../../resources/lang/'))
			{
				$publish_path = 'resources/lang/vendor/'.$this->packageNameSpace;
				$this->publishes([$langsPath => base_path($publish_path) ],'langs');
			}
			else
			{
				if (file_exists($langsPath = $this->__DIR__.'/resources/lang/'))
				{
					$publish_path = 'resources/lang/vendor/'.$this->packageNameSpace;
					$this->publishes([$langsPath => base_path($publish_path) ],'langs');
				}
			}
			#ASSETS
			if (file_exists($assetsPath = $this->__DIR__.'/../../../resources/assets/'))
			{
				$publish_path = 'resources/assets/vendor/'.$this->packageNameSpace;
				$this->publishes([$assetsPath => base_path($publish_path) ],'assets');
			}
			else
			{
				if (file_exists($assetsPath = $this->__DIR__.'/resources/assets/'))
				{
					$publish_path = 'resources/assets/vendor/'.$this->packageNameSpace;
					$this->publishes([$assetsPath => base_path($publish_path) ],'assets');
				}
			}
			#MIGRATIONS
			if (file_exists($migrationsPath = $this->__DIR__.'/../../../migrations/'))
			{
				$publish_path = 'database/migrations/vendor/'.$this->packageNameSpace;
				$this->publishes([$migrationsPath => base_path($publish_path) ],'migrations');
			}
			else
			{
				if (file_exists($migrationsPath = $this->__DIR__.'/../../../migrations/'))
				{
					$publish_path = 'database/migrations/vendor/'.$this->packageNameSpace;
					$this->publishes([$migrationsPath => base_path($publish_path) ],'migrations');
				}
			}
			#SEEDS
			if (file_exists($seedsPath = $this->__DIR__.'/../../../seeds/'))
			{
				$publish_path = 'database/seeds/vendor/'.$this->packageNameSpace;
				$this->publishes([$seedsPath => base_path($publish_path) ],'seeds');
			}
			else
			{
				if (file_exists($seedsPath = $this->__DIR__.'/seeds/'))
				{
					$publish_path = 'database/seeds/vendor/'.$this->packageNameSpace;
					$this->publishes([$seedsPath => base_path($publish_path) ],'seeds');
				}
			}
		}
	}
1104419
private void addCurrentDirFiles(List<File> theFiles, List<File> theDirs, File currentDir) {
    File dirs[] = currentDir.listFiles(new FileFilter() {

      @Override
      public boolean accept(File file) {
        return file.isDirectory() && !file.getName().startsWith(".") && !file.getName().equals("META-INF");
      }
      
    });
    
    File htmlFiles[] = currentDir.listFiles(new FileFilter() {

      @Override
      public boolean accept(File file) {
        return !file.isDirectory() && file.isFile() && file.canRead() && !file.getName().startsWith(".") && (file.getName().endsWith(".html") || file.getName().endsWith(".htm"));
      }
      
    });
    
    if(dirs != null && dirs.length > 0) {
      theDirs.addAll(Arrays.asList(dirs));
    }
    if(htmlFiles != null && htmlFiles.length > 0) {
      theFiles.addAll(Arrays.asList(htmlFiles));
    }
  }
1168678
private function publishTemplates()
    {
        if (!$this->fileSystem->isDirectory(getcwd().'/resources/crudmaker')) {
            $this->copyDirectory(__DIR__.'/../Templates/Lumen', getcwd().'/resources/crudmaker');
            $this->info("\n\nLumen templates files have been published");
        } else {
            $this->error('Lumen templates files has already been published');
        }
    }
946625
protected function prepareResources()
    {
        // Publish our views
        $this->publishes([
            __DIR__ .  '/views' => base_path("resources/views")
        ]);

        // Publish our lang
        $this->publishes([
            __DIR__ .  '/lang' => base_path("resources/lang")
        ]);

        // Publish our public
        $this->publishes([
            __DIR__ .  '/public' => base_path("public")
        ]);

        // Publish our migrations
        $this->publishes([
            __DIR__ .  '/migrations' => base_path("database/migrations")
        ], 'migrations');

        // Publish our migrations
        $this->publishes([
            __DIR__ .  '/seeds' => base_path("database/seeds")
        ], 'seeds');

        // Publish a config file
        $this->publishes([
            __DIR__ . '/config' => base_path('/config')
        ], 'config');

        // Publish our routes
        $this->publishes([
            __DIR__ .  '/routes.php' => base_path("app/Http/base_routes.php")
        ], 'routes');

        // Include the routes file
        if(file_exists(base_path("app/Http/base_routes.php")))
            include base_path("app/Http/base_routes.php");
    }
302494
function addAllFilesAndSubdirectories(dir, doneCallback) {
            FileSystem.resolve(dir, function (err, directory) {
                function visitor(entry) {
                    if (entry.isFile) {
                        if (!isFileExcluded(entry)) { // ignore .dotfiles and non-.js files
                            addFilesToTern([entry.fullPath]);
                        }
                    } else {
                        return !isDirectoryExcluded(entry.fullPath) &&
                            entry.name.indexOf(".") !== 0 &&
                            !stopAddingFiles;
                    }
                }

                if (err) {
                    return;
                }

                if (dir === FileSystem.getDirectoryForPath(rootTernDir)) {
                    doneCallback();
                    return;
                }

                directory.visit(visitor, doneCallback);
            });
        }
1018811
private function publishResources()
    {
        // Publish configuration file
        $this->publishes([__DIR__ . '/../config/config.php' => config_path('litecms/block.php')], 'config');

        // Publish admin view
        $this->publishes([__DIR__ . '/../resources/views' => base_path('resources/views/vendor/block')], 'view');

        // Publish language files
        $this->publishes([__DIR__ . '/../resources/lang' => base_path('resources/lang/vendor/block')], 'lang');

        // Publish public
        $this->publishes([__DIR__ . '/../public/' => public_path('/')], 'public');
    }
587846
def add_directories(names):
    """"""
    res = list(names)
    seen = set(names)
    for name in names:
        while True:
            name = os.path.dirname(name)
            if not name or name in seen:
                break
            res.append(name)
            seen.add(name)
    return sorted(res)
1078608
def directoryAdd(self, dir_key, key):
    '''
    '''
    key = str(key)

    dir_items = self.get(dir_key) or []
    if key not in dir_items:
      dir_items.append(key)
      self.put(dir_key, dir_items)
1321064
private function executeOnDirectories(): void
    {
        foreach ($this->config->getDirectories() as $source => $target) {
            try {
                $this->directoryExecutor->invoke($source, $target);
                $this->report->increaseParsedDirectoryNumber();
            } catch (Exception $exception) {
                $this->exceptionCatcher->catch($exception, $source);
            }
        }
    }
1007815
private function publishModule()
    {
        $from = base_path('vendor/typicms/'.$this->module.'/src');
        $to = base_path('Modules/'.ucfirst($this->module));

        if ($this->files->isDirectory($from)) {
            $this->publishDirectory($from, $to);
        } else {
            $this->error("Can’t locate path: <{$from}>");
        }

        $this->info('Publishing complete for module ['.ucfirst($this->module).']!');
    }
1039221
def _append_seed(self, seed_type: str, data: Any) -> 'Seeding':
        
        self.append({
            SEED_METHOD: seed_type,
            SEED_DATA: data,
        })
        return self
676447
protected function doSetupDirectories() {
    $destination = $this->getInstallationDirectory();
    $this->write('Prepare custom projects directory at <comment>%s</comment>', $this->shortenDirectory($destination));
    $this->fs->emptyDirectory($destination);

    $destination = $this->getDefaultDirectory();
    $this->write('Make <comment>%s</comment> writable', $this->shortenDirectory($destination));
    chmod($destination, 0755);
  }
1293196
public static function generateSharedDirs()
    {
        /** @var array $dirs */
        $dirs = \Deployer\get('shared_dirs');

        foreach ($dirs as $dir) {
            $cmd = "mkdir -p {{deploy_path}}/shared/$dir";
            \Deployer\run($cmd);
        }
    }
1049015
public function initDefaultDirectories()
    {
        $this->setParam(DirectoryKeys::DATA, ParamNode::TYPE_STRING, '/data');
        $this->setParam(DirectoryKeys::CACHE, ParamNode::TYPE_STRING, '/cache');
        $this->setParam(DirectoryKeys::SESSION, ParamNode::TYPE_STRING, '/session');
    }