Ensure that the vendor/skinny-plugins.php file exists.

If config/plugins.php is found - copy it to the vendor folder.

@param string $path the config file path.

@return void
767951
protected function ensureConfigFile($path)
    {
        if (file_exists($path)) {
            if ($this->io->isVerbose()) {
                $this->io->write('vendor/skinny-plugins.php exists.');
            }
            return;
        }

        if (!is_dir(dirname($path))) {
            mkdir(dirname($path));
        }
        $root = dirname($this->vendorDir);
        static::writeConfigFile($path, [], $root);

        if ($this->io->isVerbose()) {
            $this->io->write('Created vendor/skinny-plugins.php');
        }
    }
417213
protected function includeTheFile($path) {
        $path = $this->urlBase    .$path;
        if(file_exists($path)) {
            /** @noinspection PhpIncludeInspection */
            require_once ($path);

            return true;
        }
        return false;
    }
428733
public static function registerModulePath($path)
    {
        if (file_exists($path)) {
            self::$_modulePaths[] = $path;
        } else {
            user_error(__d('wasabi_cms', 'Module path {0} does not exist.', $path));
        }
    }
291034
public function resetPath($path = '')
    {
        $this->blob = (new Blob($this->package))->setPath($path);

        // Ensure that user folder exists on first load
        $userFolder = Str::normalizePath(config('cripfilesys.user_folder'));
        if ($this->blob->path == $userFolder) {
            $this->makeDirectory();
        }
    }
873104
public function setPath($path): void
    {
        if (!is_dir($path)) {
            throw new ConfigException('Configuration directory is not exists');
        }
        $this->path = rtrim($path, '/');
    }
759447
protected function validatePath(string $path): void
    {
        if (empty($path)) {
            $this->fail(new InvalidArgumentException("Path is not specified"));
        }

        if (!is_string($path)) {
            $this->fail(new InvalidArgumentException("Path is not a string"));
        }
    }
317085
protected function bootUsingLaravel(string $path): void
    {
        $this->mergeConfigFrom("{$path}/config/form.php", 'orchestra.form');
        $this->mergeConfigFrom("{$path}/config/table.php", 'orchestra.table');

        $this->publishes([
            "{$path}/config/form.php" => \config_path('orchestra/form.php'),
            "{$path}/config/table.php" => \config_path('orchestra/table.php'),
        ]);
    }
375953
private function setPath($path)
    {
        $parts = pathinfo($path);

        $this->info['path'] = [];

        if (isset($parts['dirname'])) {
            foreach (explode('/', str_replace(DIRECTORY_SEPARATOR, '/', $parts['dirname'])) as $dir) {
                if ($dir !== '') {
                    $this->info['path'][] = $dir;
                }
            }
        }

        $this->info['file'] = isset($parts['filename']) ? $parts['filename'] : null;
        $this->info['extension'] = isset($parts['extension']) ? $parts['extension'] : null;
    }
433584
public function autoloadPath($path)
    {
        $files = glob($path);
        if ($files && count($files)) {
            foreach ($files as $file) {
                if (file_exists($file) && is_dir($file)) {
                    $this->autoloadPath($file . "/*");
                }
                if (file_exists($file) && is_file($file)) {
                    require_once($file);
                }
            }
        }
    }
919550
public function addParsedFile($path)
    {
        if (isset($path) && file_exists($path)) {
            $this->parsedFiles[realpath($path)] = filemtime($path);
        }
    }
582651
protected function loadConfigsFrom($path)
    {
        if (! $this->app->configurationIsCached()) {
            $files = $this->getConfigurationFiles($path);

            foreach ($files as $key => $path) {
                config()->set($key, require $path);
            }
        }
    }
1085012
protected function isConfig($path)
    {
        if ($this->config()->isConfigFile($path)) {
            $this->config()->invalidateConfig();

            $this->loader->loadEverything();

            return true;
        }

        return false;
    }
234811
public function amInMuPluginPath($path)
    {
        $this->amInPath($this->config['mu-plugins'] . DIRECTORY_SEPARATOR . Utils::unleadslashit($path));
    }
309483
public function onFileChanged($path)
    {
        if (!Daemon::lintFile($path)) {
            Daemon::log(__METHOD__ . ': Detected parse error in ' . $path);
            return;
        }
        foreach ($this->files[$path] as $cb) {
            if (is_callable($cb) || is_array($cb)) {
                $cb($path);
            } elseif (!Daemon::$process->IPCManager->importFile($cb, $path)) {
                $this->rmWatch($path, $cb);
            }
        }
    }
623474
protected function setSourcePath($path)
    {
        if ($this->sourcePath === self::DUMMY_PATH) {
            $this->sourcePath = $path;
        } elseif ($this->sourcePath === self::EMPTY_PATH) {
            $this->sourcePath = null;
        }
    }
1182138
public static function addPath($path)
    {
        $path = str_replace('//', '/', rtrim($path, '/'));
        if (is_dir($path) && !in_array($path, self::$_paths)) {
            array_unshift(self::$_paths, $path);
        }
    }
1295905
public function goToContentWithPath($path)
    {
        $this->clickNavigationZone('Content');
        $this->clickNavigationItem('Content structure');
        $this->clickOnBrowsePath($path);
        $this->confirmSelection();
    }