CFile::resolveDestPath PHP Method

resolveDestPath() private method

This method enables short calls for {@link copy} & {@link rename} methods (i.e. copy('mynewfile.htm') makes a copy of the current filesystem object in the same directory, named 'mynewfile.htm')
private resolveDestPath ( string $dest ) : string
$dest string Destination filesystem object name (with or w/o path)
return string Resolved real destination path for the current filesystem object
    private function resolveDestPath($dest)
    {
        if (strpos($dest, DIRECTORY_SEPARATOR) === False) {
            return $this->getDirname() . DIRECTORY_SEPARATOR . $dest;
        }
        return $this->realPath($dest);
    }