mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(format) permissions if: perms -> perms !== undefined
This commit is contained in:
parent
5f9bc7aed6
commit
5e1818b99f
1 changed files with 2 additions and 1 deletions
|
|
@ -56,6 +56,7 @@
|
|||
this.permissions = {
|
||||
symbolic: function(perms) {
|
||||
var type, owner, group, all,
|
||||
is = typeof perms !== undefined,
|
||||
permsStr = '',
|
||||
permissions = '';
|
||||
/*
|
||||
|
|
@ -70,7 +71,7 @@
|
|||
S_IXOTH 0000001 executable by all
|
||||
*/
|
||||
|
||||
if (perms) {
|
||||
if (is) {
|
||||
permsStr = perms.toString();
|
||||
/* тип файла */
|
||||
type = permsStr.charAt(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue