add a domain-server scripts folder that is ignored for clean symlink

This commit is contained in:
Stephen Birarda 2014-10-01 09:56:13 -07:00
parent f1de2ac937
commit 0174a985ee
2 changed files with 6 additions and 2 deletions

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View file

@ -1047,7 +1047,7 @@ const char ASSIGNMENT_SCRIPT_HOST_LOCATION[] = "resources/web/assignment";
QString pathForAssignmentScript(const QUuid& assignmentUUID) { QString pathForAssignmentScript(const QUuid& assignmentUUID) {
QString newPath(ASSIGNMENT_SCRIPT_HOST_LOCATION); QString newPath(ASSIGNMENT_SCRIPT_HOST_LOCATION);
newPath += "/"; newPath += "/scripts/";
// append the UUID for this script as the new filename, remove the curly braces // append the UUID for this script as the new filename, remove the curly braces
newPath += uuidStringWithoutCurlyBraces(assignmentUUID); newPath += uuidStringWithoutCurlyBraces(assignmentUUID);
return newPath; return newPath;
@ -1086,7 +1086,7 @@ bool DomainServer::handleHTTPRequest(HTTPConnection* connection, const QUrl& url
// via correct URL for the script so the client can download // via correct URL for the script so the client can download
QUrl scriptURL = url; QUrl scriptURL = url;
scriptURL.setPath(URI_ASSIGNMENT + "/" scriptURL.setPath(URI_ASSIGNMENT + "/scripts/"
+ uuidStringWithoutCurlyBraces(pendingData->getAssignmentUUID())); + uuidStringWithoutCurlyBraces(pendingData->getAssignmentUUID()));
// have the HTTPManager serve the appropriate script file // have the HTTPManager serve the appropriate script file