public function getAbsTargetPath($srcPath, $targetPath)
    {
        $targetPath = $this->getAbsPath($targetPath);

        try {
            $this->getNode($targetPath);
        } catch (PathNotFoundException $e) {
            return $targetPath;
        }

        $basename = basename($this->getAbsPath($srcPath));

        return $this->getAbsPath(sprintf('%s/%s', $targetPath, $basename));
    }
public function getAbsTargetPath($srcPath, $targetPath)
    {
        $targetPath = $this->getAbsPath($targetPath);

        try {
            $this->getNode($targetPath);
        } catch (PathNotFoundException $e) {
            return $targetPath;
        }

        $basename = basename($this->getAbsPath($srcPath));

        return $this->getAbsPath(sprintf('%s/%s', $targetPath, $basename));
    }
public function getAbsTargetPath ( $ srcPath , $ targetPath ) { $ targetPath = $ this -> getAbsPath ( $ targetPath ) ; try { $ this -> getNode ( $ targetPath ) ; } catch ( PathNotFoundException $ e ) { return $ targetPath ; } $ basename = basename ( $ this -> getAbsPath ( $ srcPath ) ) ; return $ this -> getAbsPath ( sprintf ( '%s/%s' , $ targetPath , $ basename ) ) ; }
Infer the absolute target path for a given source path.

This means that if there is a node at targetPath then we
will return append the  basename of $srcPath to $targetPath.

@param string $srcPath
@param string $targetPath

@return string
Infer the absolute target path for a given source path .