Store the uploaded file on a filesystem disk.

@param  string  $path
@param  array|string  $options
@return string|false
513918
public function store($path, $options = [])
    {
        return $this->storeAs($path, $this->hashName(), $this->parseOptions($options));
    }
543422
public function storeAs($path, $name, $options = [])
    {
        if ($this->isModified()) {
            $this->save();
        }

        return parent::storeAs($path, $name, $options);
    }
393660
public function putFile($path, $file, $options = [])
    {
        return $this->putFileAs($path, $file, $file->getRename(), $options);
    }
1274893
protected function _path($options) {
		if (empty($options['method'])) {
			$options['method'] = 'path';
		}

		$options['entity'] = $this;
		$event = $this->dispatchEvent('FileStorage.path', $options);

		return $event->getResult();
	}
344130
public function mkdir($path, $mode, $options)
    {
        return $this
            ->_getOssClient($path)
            ->createObjectDir(AliyunOSS::getBucket(), $this->_getNamePart($path));
    }
51188
public function pathInfoFilter($path, $options = false)
    {
        if ($options) {
            $output = pathinfo($path, $options);
        } else {
            $output = pathinfo($path);
        }
        return $output;
    }
583829
public function css($path, array $options = [])
    {
        return $this->Html->css($this->path($path, 'css'), $options);
    }
632390
public function store($storagePath = '', $filename = '')
    {
        $path     = $this->getPath();
        $pathinfo = pathinfo($path);
        $data     = file_get_contents($path);

        // Use Original Filename if no specific filename is set
        if (empty($filename)) {
            $filename = $pathinfo['filename'] . '.jpg';
        }

        file_put_contents($storagePath . $filename, $data);

        $this->setLocalStoragePath($storagePath);
        $this->setLocalFilename($filename);

        return $storagePath . $filename;
    }
703368
public function handles(string $path, array $options = []): string
    {
        return $this->resolver->to($path, $options);
    }
172959
private function getObjectData($path, $options = array())
    {
        try {
            return $this->service->objects->get($this->bucket, $path, $options);
        } catch (\Google_Service_Exception $e) {
            return false;
        }
    }
1338078
public function mkdir(string $path, int $mode, int $options): bool
    {
        $umask = vfsStream::umask();
        if (0 < $umask) {
            $permissions = $mode & ~$umask;
        } else {
            $permissions = $mode;
        }

        $path = $this->resolvePath(vfsStream::path($path));
        if (null !== $this->getContent($path)) {
            trigger_error('mkdir(): Path vfs://' . $path . ' exists', E_USER_WARNING);
            return false;
        }

        if (null === self::$root) {
            self::$root = vfsStream::newDirectory($path, $permissions);
            return true;
        }

        $maxDepth = count(explode('/', $path));
        $names    = $this->splitPath($path);
        $newDirs  = $names['basename'];
        $dir      = null;
        $i        = 0;
        while ($dir === null && $i < $maxDepth) {
            $dir     = $this->getContent($names['dirname']);
            $names   = $this->splitPath($names['dirname']);
            if (null == $dir) {
                $newDirs = $names['basename'] . '/' . $newDirs;
            }

            $i++;
        }

        if (null === $dir
          || $dir->getType() !== vfsStreamContent::TYPE_DIR
          || $dir->isWritable(vfsStream::getCurrentUser(), vfsStream::getCurrentGroup()) === false) {
            return false;
        }

        $recursive = ((STREAM_MKDIR_RECURSIVE & $options) !== 0) ? (true) : (false);
        if (strpos($newDirs, '/') !== false && false === $recursive) {
            return false;
        }

        vfsStream::newDirectory($newDirs, $permissions)->at($dir);
        return true;
    }
1128307
public static function put($path, $options = array()) {
    $requestOptions = array(
      "path" => $path,
      "method" => "PUT",
      "body" => $options["body"]
    );

    if (!empty($options["sign"])) {
      $requestOptions["sign"] = $options["sign"];
    }

    return self::request($requestOptions);
  }
640247
public function mkdir($path, $mode, $options)
    {
        if ($this->getContainerName($path) != $this->getFileName($path)) {
            throw new BlobException('mkdir() with multiple levels is not supported on Windows Azure Blob Storage.');
        }
        
        // Create container
        try {
            $this->getStorageClient($path)->createContainer($this->getContainerName($path));
            return true;
        } catch (Exception $ex) {
            return false;
        }
    }
678638
protected function getDefaultSaveOptions($options, $path = null)
    {
        $options += [
            'format' => get_extension($path ?: $this->path),
            'quality' => 90,
            'target' => false,
        ];

        //Fixes some formats
        $options['format'] = preg_replace(['/^jpeg$/', '/^tif$/'], ['jpg', 'tiff'], $options['format']);

        return $options;
    }
1303894
public function rmdir($path, $options)
    {
        $dir = $this->dir_list($path);

        if (empty($dir)) {
            $count = count(self::$folders);
            for ($index = 0; index < $count; $index++) {
                if (self::$folders[$index] === $path) {
                    unset(self::$folders[$index]);
                    return true;
                }
            }
        }

        return false;
    }
637209
public function put($path = null, $data = [], array $options = []) {
		return $this->send(__FUNCTION__, $path, $data, $options);
	}
567075
protected function upload($path, $contents, $opts = []) {
        $location = $this->applyPathPrefix($path);
        try {
            $tmpfile = tmpfile();
            fwrite($tmpfile, $contents);
            $localFile = $this->getStreamUri($tmpfile);

            $obj = $this->client->simpleUpload($localFile, $location, $opts);
            fclose($tmpfile);
            return $this->normalizeResponse($obj);
        } catch (DropboxClientException $e) {
            return false;
        }
    }