/** * get current working directory */ public static function getCwd() { if (!Exec::allowed() || OperatingSystem::isWindows()) { return getcwd(); } Exec::run('pwd', $folder); return $folder; }