Skip to content

Commit

Permalink
yeet
Browse files Browse the repository at this point in the history
  • Loading branch information
Olzie-12 committed Feb 13, 2024
1 parent 48f1c58 commit b2386f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@olzie-12/ftp-deploy",
"version": "1.2.45",
"version": "1.2.46",
"private": false,
"description": "Deploy files to a ftp server",
"main": "dist/module.js",
Expand Down
6 changes: 1 addition & 5 deletions src/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ async function connect(client: ftp.Client, args: IFtpDeployArgumentsWithDefaults
}

export async function clearWorkingDir(client: ftp.Client, dir: string) {
try {
await client.removeFolder(dir);
} catch (error) {
console.log(error)
}
await client.removeFolder(dir).catch(() => {});

// for (const file of await (dir == null ? client.list() : client.list(dir))) {
// console.log(file.name)
Expand Down

0 comments on commit b2386f4

Please sign in to comment.