Complete filepath to the CSV location.
@return string Filepath to the csv.
509528
protected function filePath()
    {
        if ($this->filePath) {
            return $this->filePath;
        }

        $base = $this->appConfig->get('base_path');
        $output = $this->output();
        $this->filePath = str_replace('/', DIRECTORY_SEPARATOR, $base.$output);
        return $this->filePath;
    }
649942
public function getFileStream() {
		$stream = new \FAL\FileStream();
		$pt = $stream->getProtocolName();
		file_put_contents($path = $pt.'://'.$this->file,$this->getContent());
		return $path;
	}
225783
final public static function getReviewsCsvFilePath()
    {
        self::deprecated(__METHOD__);

        if (isset(self::$config['path_to_reviews_csv_file'])) {
            return self::$config['path_to_reviews_csv_file'];
        } else {
            return SHOPGATE_BASE_DIR . '/temp/reviews.csv';
        }
    }
567631
protected function getPathFromContent()
    {
        $pathFromContent = str_replace($this->getPathToContent(), '', $this->getFile()->getRealPath());

        return trim($pathFromContent, DIRECTORY_SEPARATOR);
    }
794036
protected function getFilePath()
    {
        $path = $this->cachePath . DIRECTORY_SEPARATOR . $this->cacheDirectory . DIRECTORY_SEPARATOR;
        $path = str_replace(['\\\\', '//'], [DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR], $path);

        return $path;
    }
553677
public function getQueuedFilePath()
    {
        return $this->getInterpolator()->interpolate(
            $this->joinPaths(
                $this->config('queue_path'),
                $this->getAttribute('queued_file')
            )
        );
    }
1161384
public function fileperms()
	{
		if ($this->use_include_path) {
			return fileperms(stream_resolve_include_path($this->_fhandle));
		} else {
			return fileperms($this->_fhandle);
		}
	}
1105001
public function complete()
    {
        $this->flushBuffer(true);

        $document = $this->insertFile();

        $this->_isComplete = true;

        return $document;
    }
1073313
public function getPath()
	{
		$realpath	= realpath( $this->fileName );
		$path	= dirname( $realpath );
		$path	= str_replace( "\\", "/", $path );
		$path	.= "/";
		return	$path;
	}
1363230
public function toCsv()
    {
        $csv = '';

        foreach ($this->toArray() as $csvRow) {
            if (is_array($csvRow)) {
                $data = implode($this->_csvDelimiter, $csvRow);
            } else {
                $data = $csvRow;
            }

            $csv .= $data . $this->_csvLineDelimiter;
        }

        return rtrim($csv, $this->_csvLineDelimiter);
    }
210853
public function getWebPath() : string
    {
        if ($this->fullWebPath !== null) {
            return $this->fullWebPath;
        }

        $path = rtrim($this->getSetting('webPath'), '/');

        if (filter_var($path, FILTER_VALIDATE_URL) !== false) {
            return $this->fullWebPath = $path;
        }

        if (Str::startsWith($path, '//')) {
            return $this->fullWebPath = $path;
        }

        return $this->fullWebPath = urlTo(ltrim($path, '/'));
    }
1260068
protected function getCsvDelimiter()
    {
        if ($this->hasOption(self::CSV_DELIMITER_OPTION)) {
            return $this->getOption(self::CSV_DELIMITER_OPTION);
        }

        return self::CSV_DELIMITER;
    }
123427
public function getLogPath(): string
    {
        $path = $this->getRuntimePath() . DIRECTORY_SEPARATOR . 'logs';
        FileHelper::createDirectory($path);
        return $path;
    }
407797
public function getFilePath() {
		if ($this->path === null) {
			throw new NoPath('Path to a file was not been specified');
		}
		
		// Absolute path
		if ($this->path[0] === DIRECTORY_SEPARATOR) {
			return $this->path;
		}
		// Relative path
		return $this->getIntrospectiveData()->dirname . DIRECTORY_SEPARATOR . $this->path;
	}
1217434
protected function getFilePath()
    {
        $fileName = trim($this->fileName);
        if (!strlen($fileName)) {
            throw new SystemException('The form model file name is not set.');
        }

        $fileName = $this->addExtension($fileName);

        return $this->getPluginCodeObj()->toPluginDirectoryPath().'/models/'.strtolower($this->getModelClassName()).'/'.$fileName;
    }
637559
protected function FetchCSVFile()
    {
        $bFileWritten = false;

        $sCSVData = file_get_contents($this->fieldRatingUrl);

        if (!empty($sCSVData)) {
            if (false !== file_put_contents($this->sCsvFilePath, $sCSVData)) {
                $bFileWritten = true;
            } else {
                $this->WriteLogEntry('Could not read CSV from '.$this->fieldRatingUrl, __LINE__);
            }
        } else {
            $this->WriteLogEntry($this->sCsvFilePath.' could not be written.', __LINE__);
        }

        return $bFileWritten;
    }
1109452
public function csv()
    {
        $ext = '.' . strtolower($this->csvWriter);

        return $this->buildExcelFile()->download($this->getFilename() . $ext, $this->csvWriter);
    }