mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-11-29 07:02:58 +08:00
Compare commits
1 Commits
7a887f7a38
...
8484c25112
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8484c25112 |
@ -468,9 +468,9 @@ const apiWriteMultiFiles = async (req: Request, res: Response) => {
|
|||||||
} else {
|
} else {
|
||||||
const strArray = status.map((v, i) => {
|
const strArray = status.map((v, i) => {
|
||||||
if (v === APIStatus.PermissionDeny) {
|
if (v === APIStatus.PermissionDeny) {
|
||||||
return `Path: ${pathList[i]}: Permission Error: Cannot access file outside current working directory.`;
|
return `Index: ${i}; Permission Error: Cannot access file outside current working directory`;
|
||||||
} else if (v === APIStatus.WriteError) {
|
} else if (v === APIStatus.Success) {
|
||||||
return `Path: ${pathList[i]}: Internal Error: Write file error.`;
|
return `Index: ${i}: Internal Error: Write file error.`;
|
||||||
} else {
|
} else {
|
||||||
return 'Success';
|
return 'Success';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user