src/ScContent/Service/Dir.php
public function app($path = '', $checkIfExists = false)
    {
        $appDir = getcwd();
        if ($checkIfExists) {
            return realpath($appDir . DS . $path);
        }
        if (empty($path)) {
            return $appDir;
        }
        return $appDir . DS . $this->normalizePath($path);
    }
public function app($path = '', $checkIfExists = false)
    {
        $appDir = getcwd();
        if ($checkIfExists) {
            return realpath($appDir . DS . $path);
        }
        if (empty($path)) {
            return $appDir;
        }
        return $appDir . DS . $this->normalizePath($path);
    }
public function app ( $ path = '' , $ checkIfExists = false ) { $ appDir = getcwd ( ) ; if ( $ checkIfExists ) { return realpath ( $ appDir . DS . $ path ) ; } if ( empty ( $ path ) ) { return $ appDir ; } return $ appDir . DS . $ this -> normalizePath ( $ path ) ; }
Returns the path to the root directory of the appliacation
or any child path.

If the flag "checkIfExists" is set to TRUE, checks for the specified
path and if the path was not found, returns FALSE.

@param  string  $path optional
@param  boolean $checkIfExists optional default false
@return string|false
Returns the path to the root directory of the appliacation or any child path .