mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
chore(cloudfunc) rm " "
This commit is contained in:
parent
28cb86987b
commit
4cce769ffa
1 changed files with 14 additions and 14 deletions
|
|
@ -172,23 +172,23 @@ var Util;
|
|||
of using an application-specific shorthand).
|
||||
*/
|
||||
/* Переводим в двоичную систему */
|
||||
lOwner = ( perms[0] - 0 ).toString(2),
|
||||
lGroup = ( perms[1] - 0 ).toString(2),
|
||||
lAll = ( perms[2] - 0 ).toString(2),
|
||||
lOwner = (perms[0] - 0).toString(2),
|
||||
lGroup = (perms[1] - 0).toString(2),
|
||||
lAll = (perms[2] - 0).toString(2),
|
||||
|
||||
/* переводим в символьную систему*/
|
||||
lPermissions =
|
||||
( lOwner[0] - 0 > 0 ? 'r' : '-' ) +
|
||||
( lOwner[1] - 0 > 0 ? 'w' : '-' ) +
|
||||
( lOwner[2] - 0 > 0 ? 'x' : '-' ) +
|
||||
(lOwner[0] - 0 > 0 ? 'r' : '-') +
|
||||
(lOwner[1] - 0 > 0 ? 'w' : '-') +
|
||||
(lOwner[2] - 0 > 0 ? 'x' : '-') +
|
||||
' ' +
|
||||
( lGroup[0] - 0 > 0 ? 'r' : '-' ) +
|
||||
( lGroup[1] - 0 > 0 ? 'w' : '-' ) +
|
||||
( lGroup[2] - 0 > 0 ? 'x' : '-' ) +
|
||||
(lGroup[0] - 0 > 0 ? 'r' : '-') +
|
||||
(lGroup[1] - 0 > 0 ? 'w' : '-') +
|
||||
(lGroup[2] - 0 > 0 ? 'x' : '-') +
|
||||
' ' +
|
||||
( lAll[0]- 0 > 0 ? 'r' : '-' ) +
|
||||
( lAll[1]- 0 > 0 ? 'w' : '-' ) +
|
||||
( lAll[2]- 0 > 0 ? 'x' : '-' );
|
||||
(lAll[0]- 0 > 0 ? 'r' : '-') +
|
||||
(lAll[1]- 0 > 0 ? 'w' : '-') +
|
||||
(lAll[2]- 0 > 0 ? 'x' : '-');
|
||||
}
|
||||
|
||||
return lPermissions;
|
||||
|
|
@ -312,7 +312,7 @@ var Util;
|
|||
var lUrl = folders[i],
|
||||
lSlashIndex = lUrl.lastIndexOf('/') + 1;
|
||||
|
||||
lShortName = Util.removeStr(lUrl, lUrl.substr(lUrl, lSlashIndex) );
|
||||
lShortName = Util.removeStr(lUrl, lUrl.substr(lUrl, lSlashIndex));
|
||||
|
||||
if (i !== 1)
|
||||
lHtmlPath += lHref + FS + lUrl +
|
||||
|
|
@ -409,7 +409,7 @@ var Util;
|
|||
type = lFile.size === 'dir' ? 'directory' : 'text-file';
|
||||
link = FS + lPath + lFile.name;
|
||||
target = lFile.size === 'dir' ? '' : "_blank";
|
||||
size = lFile.size === 'dir' ? '<dir>' : CloudFunc.getShortSize( lFile.size );
|
||||
size = lFile.size === 'dir' ? '<dir>' : CloudFunc.getShortSize(lFile.size);
|
||||
owner = lFile.owner ? lFile.owner : 'root';
|
||||
|
||||
mode = CloudFunc.getSymbolicPermissions(lFile.mode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue