移动 & 提权.

This commit is contained in:
lijiahang
2024-02-20 11:43:18 +08:00
parent 585cf3c8a6
commit f7ca8f0bf1
7 changed files with 236 additions and 35 deletions

View File

@@ -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;
}