public function getRealWritingFilePath($path, $rootDir)
    {
        $realDir = $this->getRealDir($path, $rootDir);

        if (!is_string($realDir)) {
            return false;
        }

        return $realDir . DIRECTORY_SEPARATOR . basename($path);
    }
public function getRealWritingFilePath($path, $rootDir)
    {
        $realDir = $this->getRealDir($path, $rootDir);

        if (!is_string($realDir)) {
            return false;
        }

        return $realDir . DIRECTORY_SEPARATOR . basename($path);
    }
public function getRealWritingFilePath ( $ path , $ rootDir ) { $ realDir = $ this -> getRealDir ( $ path , $ rootDir ) ; if ( ! is_string ( $ realDir ) ) { return false ; } return $ realDir . DIRECTORY_SEPARATOR . basename ( $ path ) ; }
Return real file path to write.

@param string $path    file path
@param string $rootDir absolute path to project root directory

@return false|string real file path string if the parent directory exists, false otherwise
Return real file path to write .