mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-05 16:37:09 +00:00
fix(control): string bug delete
This commit is contained in:
@@ -113,7 +113,7 @@ export async function create_folders(ip: string, path: string, folder_names: str
|
||||
}
|
||||
|
||||
export async function delete_files(ip: string, current_path: string, file_names: string[]) {
|
||||
let command: string = 'cd ".${current_path}"';
|
||||
let command: string = `cd ".${current_path}"`;
|
||||
for (const file_name of file_names) {
|
||||
command += ` && rm -r "${file_name}"`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user