mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-16 08:55:18 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -71,10 +71,7 @@ export const unzipDrop = async (zipFile: File, application: Application) => {
|
|||||||
if (sftp === null) throw new Error("No SFTP connection available");
|
if (sftp === null) throw new Error("No SFTP connection available");
|
||||||
try {
|
try {
|
||||||
const dirPath = path.dirname(fullPath);
|
const dirPath = path.dirname(fullPath);
|
||||||
await execAsyncRemote(
|
await execAsyncRemote(targetServerId, `mkdir -p "${dirPath}"`);
|
||||||
targetServerId,
|
|
||||||
`mkdir -p "${dirPath}"`,
|
|
||||||
);
|
|
||||||
await uploadFileToServer(sftp, entry.getData(), fullPath);
|
await uploadFileToServer(sftp, entry.getData(), fullPath);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(`Error uploading file ${fullPath}:`, err);
|
console.error(`Error uploading file ${fullPath}:`, err);
|
||||||
|
|||||||
Reference in New Issue
Block a user