feature(main) rm getVolumes

This commit is contained in:
coderaiser 2014-06-23 05:49:43 -04:00
parent 721d2085ee
commit a23004fa8b

View file

@ -100,8 +100,6 @@
*/
global.cloudcmd.main = exports;
exports.VOLUMES = getVolumes(),
/* Additional Modules */
exports.cloudfunc = CloudFunc = librequire('cloudfunc'),
exports.pipe = pipe = srvrequire('pipe'),
@ -170,20 +168,6 @@
*/
function isWin32() { return process.platform === 'win32'; }
/**
* get volumes if win32 or get nothing if nix
*/
function getVolumes() {
var lRet = ISWIN32 ? [] : '/';
if (ISWIN32)
srvrequire('win').getVolumes(function(error, volumes) {
Util.log(error, volumes);
});
return lRet;
}
/**
* Функция создаёт заголовки файлов
* в зависимости от расширения файла