mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
feature(main) rm getVolumes
This commit is contained in:
parent
721d2085ee
commit
a23004fa8b
1 changed files with 0 additions and 16 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Функция создаёт заголовки файлов
|
||||
* в зависимости от расширения файла
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue