set the asset container folder

@param   string    set the asset directory
@throws  \InvalidArgumentException
@throws  \LogicException
541644
public function setAssetDir($assetDir)
    {
        $emptyAssetDir = empty($assetDir);
        $folderNotExists = ! file_exists($this->docRoot . DS . $assetDir);
        $folderNotDir = ! is_dir($this->docRoot . DS . $assetDir);

        if ($emptyAssetDir || $folderNotExists || $folderNotDir) {
            throw new \InvalidArgumentException(
                'The asset directory set is not a valid directory.'
            );
        }

        if (! is_writable($this->docRoot . DS . $assetDir)) {
            throw new \LogicException(
                'The folder "' . $this->docRoot . DS . $assetDir . '" must be writable.'
            );
        }
        $this->assetDir = $assetDir;
    }
956782
public function setAsset($path)
	{		
		$url = $this->config['dir']['site'] . str_replace($this->config['dir']['asset'], '', $path);
		$this->assets[] = new Asset($path, $url);
	}
68524
public function setCachePath(string $path)
    {
        $rpath = substr($path, 0, 6) === "vfs://" ? $path : realpath($path);
        if (empty($rpath) || !file_exists($path))
            throw new InvalidArgumentException("Path does not exist: " . $rpath);
        $this->cache_path = $rpath;
    }
558151
public void setAsset(com.google.api.ads.admanager.axis.v201808.CreativeAsset asset) {
        this.asset = asset;
    }
32586
public function setPath($path = null)
    {
        if (is_string($path)) {
            if ($path{0} !== '/') {
                $path = "/$path";
            }
        }
        else if (!is_null($path)) {
            throw new \InvalidArgumentException(
                "invalid value provided for 'path'; ".
                " expecting a string or null"
            );
        }
        $this->path = $path;
    }
1175319
private static function initialize(string $storage): void
    {
        if (self::$path === null) {
            throw new \Exception('Path not set.');
        }
        if (self::lifetime(null, $storage) === 0) {
            throw new \Exception('Lifetime not set.');
        }
        Directory::make(self::$path . '/' . $storage);
    }
315206
protected function _setFile($path) {
        $this->_name .= $path;
        $this->_data['' . $path . ''] = file_get_contents($path);

        if ($this->_type == 'css') {
            $this->_currentPath = dirname($path) . '/';
            $this->_data['' . $path . ''] = preg_replace_callback('`url\((.*)\)`isU', ['Gcs\Framework\Core\Asset\Asset', '_parseRelativePathCssUrl'], $this->_data['' . $path . '']);
            $this->_data['' . $path . ''] = preg_replace_callback('`src=\'(.*)\'`isU', ['Gcs\Framework\Core\Asset\Asset', '_parseRelativePathCssSrc'], $this->_data['' . $path . '']);
        }
    }
178954
protected function setFilePath($filePath)
	{
		if ( ! is_string($filePath))
		{
			throw new \InvalidArgumentException('File path must be a string type.');
		}
		
		if (preg_match('~^(\w+:)?//~', $filePath) || is_link($filePath))
		{
			throw new \InvalidArgumentException('File path must be a local path.');
		}
		
		$filePath = realpath($filePath);
		
		if ( ! is_file($filePath))
		{
			throw new TranscoderException('File path not found.');
		}
		
		$this->filePath = $filePath;
		
		return $this;
	}
770944
static function setFilesystem(?\React\Filesystem\FilesystemInterface $filesystem) {
        if($filesystem === null) {
            $filesystem = false;
        }
        
        self::$filesystem = $filesystem;
    }
307369
public function add (Asset $asset) : void
    {
        $this->assets[$asset->getAssetPath()] = $asset;
        $this->setAssets($this->assets);
    }
1200803
public function setAssets($Assets)
    {
        if (! is_object($Assets) || ! $Assets instanceof Assets) {
            throw new \InvalidArgumentException(
                'The Assets Interface must be a valid Assets Object'
            );
        }
        $this->Assets = $Assets;

        return true;
    }
623478
public function set_assets() {
		if ( ! empty( $this->struct['style'] ) ) {
			$this->assets['style'] = array_merge( $this->assets['style'], $this->struct['style'] );
		}
		if ( ! empty( $this->struct['script'] ) ) {
			$this->assets['script'] = array_merge( $this->assets['script'], $this->struct['script'] );
		}
	}
922588
public function setDir($dir)
    {
        if (in_array($dir, Direction::asArray(), true) === true) {
            $this->dir = $dir;
        } else {
            $msg = "The 'dir' argument must be a value from the Direction enumeration.";
            throw new InvalidArgumentException($msg);
        }
    }
2309
public function setRootDir($rootDir)
    {
        if (!is_dir($rootDir)) {
            throw new \InvalidArgumentException(
                sprintf('Invalid Application Configuration Directory: %s', $rootDir)
            );
        }

        $this->rootDir = $rootDir;
    }
111970
public function setPath($path)
	{
		if (!is_file($path)) {
			throw new \InvalidArgumentException('Path '.$path.' invalid');
		}
		$this->path = realpath($path);
	}
715280
public function createChildDirectory($name)
    {
        if (
            strpos($name, '\\') !== false
            || strpos($name, '/') !== false
            || strpos($name, '..') !== false
        ) {
            throw new InvalidArgumentException("Wrong folder name {$name}");
        }

        return new self($this->absolutePath . '/' . $name, $this->fileClass);
    }
1271842
public function setTypeAttribute($type)
    {
        if (!$type instanceof FileType) {
            $type = FileType::getByName($type);
        }
        if (!$type) {
            throw new InvalidArgumentException('Unknown file type');
        }
        $this->type()->associate($type);
    }