Fixed problem with recipe directory handling

print-window-tiddler
Jeremy Ruston 2012-01-21 16:54:31 +00:00
rodzic 61adbbf83a
commit 106f287a94
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -91,7 +91,7 @@ FileRetriever.retrieveFile = function(filepath,contextPath,callback) {
requester = httpRequest;
} else {
// It's a file requested in a file context
result.path = path.resolve(path.dirname(contextPath),filepath);
result.path = path.resolve(contextPath,filepath);
result.extname = path.extname(result.path);
result.basename = path.basename(result.path,result.extname);
requester = fileRequest;

Wyświetl plik

@ -70,7 +70,7 @@ var Recipe = function(options,callback) {
if(err) {
me.callback(err);
} else {
me.processRecipeFile(task.recipe,data.text,data.path);
me.processRecipeFile(task.recipe,data.text,path.dirname(data.path));
callback(null);
}
});