mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
refactor(commander) rm global.cloudcmd condition
This commit is contained in:
parent
75d3ead833
commit
fade11f10f
1 changed files with 13 additions and 14 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue