refactor(commander) rm global.cloudcmd condition

This commit is contained in:
coderaiser 2014-05-27 09:18:28 -04:00
parent 75d3ead833
commit fade11f10f

View file

@ -1,21 +1,20 @@
(function() {
'use strict';
if (!global.cloudcmd)
return console.log(
'# commander.js' + '\n' +
'# -----------' + '\n' +
'# Module is part of Cloud Commander,' + '\n' +
'# used for getting dir content.' + '\n' +
'# and forming html content' + '\n' +
'# http://cloudcmd.io' + '\n');
var main = global.cloudcmd.main,
fs = main.fs,
Util = main.util,
users = main.users,
/*
'# commander.js' + '\n' +
'# -----------' + '\n' +
'# Module is part of Cloud Commander,' + '\n' +
'# used for getting dir content.' + '\n' +
'# and forming html content' + '\n' +
'# http://cloudcmd.io' + '\n');
*/
var fs = require('fs'),
Util = require('../util'),
users = require('./users'),
WIN32 = main.WIN32;
WIN32 = process.platform === 'win32';
exports.getDirContent = function(path, callback) {
var isString = Util.isString(path);