From f7f851b4dd3da22bf99c02e5f86407136f3ad663 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Wed, 10 Jul 2013 13:17:51 -0700 Subject: [PATCH] Create temp container for testing --- example/upload.js | 8 ++++++-- package.json | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/example/upload.js b/example/upload.js index affb304..d91b166 100644 --- a/example/upload.js +++ b/example/upload.js @@ -13,14 +13,18 @@ app.configure(function () { app.use(app.router); }); +// Create the container +var mkdirp = require('mkdirp'); +mkdirp.sync('/tmp/storage/con1'); + var handler = new StorageService({provider: 'filesystem', root: '/tmp/storage'}); app.get('/', function (req, res, next) { res.setHeader('Content-Type', 'text/html'); var form = "

Storage Service Demo

" + "List all containers

" + - "Upload to container c1:

" + - "

" + "Upload to container con1:

" + + "" + "File to upload:
" + "Notes about the file:
" + "

" + diff --git a/package.json b/package.json index 0ede614..3c87403 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "asteroid": "git+ssh://git@github.com/strongloop/asteroid.git", "formidable": "latest", "mocha": "latest", - "supertest": "latest" + "supertest": "latest", + "mkdirp": "latest" }, "repository": { "type": "git",