mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fixed bug with convertPermissions function
This commit is contained in:
parent
a7d971918f
commit
5dc111a4c4
1 changed files with 4 additions and 5 deletions
|
|
@ -48,7 +48,7 @@ CloudFunc.setTitle = function(){
|
|||
* @pPerm_s - строка с правами доступа
|
||||
* к файлу в 8-миричной системе
|
||||
*/
|
||||
CloudFunc.convertPermissionsToSymbolic= function(pPerm_s){
|
||||
CloudFunc.convertPermissionsToSymbolic = function(pPerm_s){
|
||||
/*
|
||||
S_IRUSR 0000400 protection: readable by owner
|
||||
S_IWUSR 0000200 writable by owner
|
||||
|
|
@ -96,9 +96,9 @@ CloudFunc.convertPermissionsToSymbolic= function(pPerm_s){
|
|||
of using an application-specific shorthand).
|
||||
*/
|
||||
/* Переводим в двоичную систему */
|
||||
var lOwner=(pPerm_s[0]-0).toString(2);
|
||||
var lGroup=(pPerm_s[1]-0).toString(2);
|
||||
var lAll =(pPerm_s[2]-0).toString(2);
|
||||
var lOwner = (pPerm_s[0]-0).toString(2);
|
||||
var lGroup = (pPerm_s[1]-0).toString(2);
|
||||
var lAll = (pPerm_s[2]-0).toString(2);
|
||||
/*
|
||||
console.log(lOwner+' '+lGroup+' '+lAll);
|
||||
*/
|
||||
|
|
@ -488,7 +488,6 @@ try{
|
|||
exports.buildFromJSON = CloudFunc.buildFromJSON;
|
||||
exports.replaceSpaces = CloudFunc.replaceSpaces;
|
||||
exports.setTitle = CloudFunc.setTitle;
|
||||
exports.convertPermissions = CloudFunc.convertPermissions;
|
||||
exports.getUserUIDsAndNames = CloudFunc.getUserUIDsAndNames;
|
||||
|
||||
/* константы*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue