Kaydet (Commit) 4bbdae3c authored tarafından Eda Altuntaş's avatar Eda Altuntaş

Dosya silme fonksiyonu değiştirildi

üst b466ea4a
const { ipcMain } = require("electron");
const { spawn } = require("child_process");
const { copyFileSync, existsSync } = require("fs");
const { copyFileSync, existsSync, unlinkSync } = require("fs");
const { basename, join, posix } = require("path");
const handler = (win, args = null) => {
......@@ -27,13 +27,7 @@ const handler = (win, args = null) => {
`${posix.join(Target, basename(File))}`,
`/home/${Username}/Desktop/`
]);
spawn("docker", [
"exec",
Id,
"rm",
"-rf",
`${posix.join(Target, basename(File))}`,
]);
unlinkSync(join(Source, basename(File)));
spawn("docker", [
"exec",
Id,
......
const { ipcMain, dialog } = require("electron");
const { spawn } = require("child_process");
const { basename, join, posix } = require("path");
const { copyFileSync } = require("fs");
const { copyFileSync, unlinkSync } = require("fs");
const handler = () => {
ipcMain.on("terminal", (_, data) => {
......@@ -47,13 +47,7 @@ const handler = () => {
`${posix.join(Target, basename(f))}`,
`/home/${Username}/Desktop/`
]);
spawn("docker", [
"exec",
Id,
"rm",
"-rf",
`${posix.join(Target, basename(f))}`,
]);
unlinkSync(join(Source, basename(f)));
spawn("docker", [
"exec",
Id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment