protected function getFullPath($path, $verify = false)
	{
		$full_path = $this->rootDirectory . rawurldecode($path);
		$full_path = $this->cleanPath(ltrim($full_path, '/'));
		$s3_path = $this->getS3WrapperPath($full_path);

		$isValid = $this->is_valid_path($s3_path);
		if($verify === true && $isValid) {
			$isValid = file_exists($s3_path) && $isValid;
		}
		if(!$isValid) {
			$langKey = $this->isDir($s3_path) ? 'DIRECTORY_NOT_EXIST' : 'FILE_DOES_NOT_EXIST';
            $this->error($langKey, [$path]);
		}

		return $s3_path;
	}
protected function getFullPath($path, $verify = false)
	{
		$full_path = $this->rootDirectory . rawurldecode($path);
		$full_path = $this->cleanPath(ltrim($full_path, '/'));
		$s3_path = $this->getS3WrapperPath($full_path);

		$isValid = $this->is_valid_path($s3_path);
		if($verify === true && $isValid) {
			$isValid = file_exists($s3_path) && $isValid;
		}
		if(!$isValid) {
			$langKey = $this->isDir($s3_path) ? 'DIRECTORY_NOT_EXIST' : 'FILE_DOES_NOT_EXIST';
            $this->error($langKey, [$path]);
		}

		return $s3_path;
	}
protected function getFullPath ( $ path , $ verify = false ) { $ full_path = $ this -> rootDirectory . rawurldecode ( $ path ) ; $ full_path = $ this -> cleanPath ( ltrim ( $ full_path , '/' ) ) ; $ s3_path = $ this -> getS3WrapperPath ( $ full_path ) ; $ isValid = $ this -> is_valid_path ( $ s3_path ) ; if ( $ verify === true && $ isValid ) { $ isValid = file_exists ( $ s3_path ) && $ isValid ; } if ( ! $ isValid ) { $ langKey = $ this -> isDir ( $ s3_path ) ? 'DIRECTORY_NOT_EXIST' : 'FILE_DOES_NOT_EXIST' ; $ this -> error ( $ langKey , [ $ path ] ) ; } return $ s3_path ; }
Builds a full path to the S3 storage object
@param string $path
@param bool $verify If file or folder exists and valid
@return mixed|string
Builds a full path to the S3 storage object