Example #1
0
				fs.exists( dir, function( exists ) {
					expect( exists ).to.be.true;

					rimraf( path.normalize( 'test/fixtures/utils/' ), function() {
						done();
					} );
				} );
Example #2
0
 stopApp(app, function (err) {
     if (err) return res.json(500, { error: "Failed to stop app, cannot remove: " + err });
     utile.rimraf(app.storePath, function (err) {
         if (err) return res.json(500, { error: "Failed to remove app: " + err });
         delete apps[app.name];
         res.json({ ok: true });
     });
 });
Example #3
0
	after( function( done ) {
		rimraf( jobs.__get__( 'jobsDir' ), function() {
			done();
		} );
	} );
Example #4
0
		'then clean the mess': function(err) {
			utile.rimraf(path.join(base_path,'test_blog'),function(err){
				assert.isTrue(err);
			});
		}
Example #5
0
 topic: function () {
   rimraf(path.join(process.env.HOME, '.forever', 'sock'), this.callback);
 },
Example #6
0
FileManager.prototype.rmdir = function(dir, cb) {
    var self = this;

    utile.rimraf(dir, cb);
};