protected function getDynamicPath($path, $strip_root_directory = true)
	{
		$prefix = 's3://' . $this->s3->bucket . '/';
		if($strip_root_directory) {
			$prefix .= rtrim($this->rootDirectory, '/');
		}
		$path = str_replace($prefix, '' , $path);
		return $this->cleanPath($path);
	}
protected function getDynamicPath($path, $strip_root_directory = true)
	{
		$prefix = 's3://' . $this->s3->bucket . '/';
		if($strip_root_directory) {
			$prefix .= rtrim($this->rootDirectory, '/');
		}
		$path = str_replace($prefix, '' , $path);
		return $this->cleanPath($path);
	}
protected function getDynamicPath ( $ path , $ strip_root_directory = true ) { $ prefix = 's3://' . $ this -> s3 -> bucket . '/' ; if ( $ strip_root_directory ) { $ prefix .= rtrim ( $ this -> rootDirectory , '/' ) ; } $ path = str_replace ( $ prefix , '' , $ path ) ; return $ this -> cleanPath ( $ path ) ; }
Returns a path to S3 storage object without "rootDirectory" part
@param string $path
@param bool $strip_root_directory
@return mixed
Returns a path to S3 storage object without rootDirectory part