app->getName() .'/vn-access'; $headFile = "$accessDir/$appName.7z"; $archiveRelPath = ".archive/$appName/$newVersion.7z"; $archiveFullPath = "$accessDir/$archiveRelPath"; // Updates the application rename($moduleFile['tmp_name'], $archiveFullPath); chmod($archiveFullPath, 0644); @unlink ($headFile); symlink($headFile, $archiveRelPath); return TRUE; } }