✨ 移动 & 提权.
This commit is contained in:
@@ -104,6 +104,9 @@ export function downloadFile(res: any, fileName: string) {
|
||||
* 10进制权限 转 字符串权限
|
||||
*/
|
||||
export function permission10toString(permission: number) {
|
||||
if (permission === undefined) {
|
||||
return '---';
|
||||
}
|
||||
const ps = (permission + '');
|
||||
let res = '';
|
||||
for (let i = 0; i < ps.length; i++) {
|
||||
@@ -124,6 +127,11 @@ export function permission10toString(permission: number) {
|
||||
res += 'x';
|
||||
}
|
||||
}
|
||||
if (res.length <= 9) {
|
||||
res = res.padEnd(9, '-');
|
||||
} else {
|
||||
res = res.substring(0, 9);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user