Socket
Socket
Sign inDemoInstall

basic-ftp

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basic-ftp - npm Package Compare versions

Comparing version 5.0.3 to 5.0.4

7

dist/Client.js

@@ -535,6 +535,9 @@ "use strict";

await this.cd(remoteDirPath);
// Get the absolute path of the target because remoteDirPath might be a relative path, even `../` is possible.
const absoluteDirPath = await this.pwd();
await this.clearWorkingDir();
if (remoteDirPath !== "/") {
const dirIsRoot = absoluteDirPath === "/";
if (!dirIsRoot) {
await this.cdup();
await this.removeEmptyDir(remoteDirPath);
await this.removeEmptyDir(absoluteDirPath);
}

@@ -541,0 +544,0 @@ });

@@ -10,3 +10,3 @@ "use strict";

FileType[FileType["SymbolicLink"] = 3] = "SymbolicLink";
})(FileType = exports.FileType || (exports.FileType = {}));
})(FileType || (exports.FileType = FileType = {}));
/**

@@ -88,2 +88,3 @@ * Describes a file, directory or symbolic link.

}
exports.FileInfo = FileInfo;
FileInfo.UnixPermission = {

@@ -94,2 +95,1 @@ Read: 4,

};
exports.FileInfo = FileInfo;

@@ -12,4 +12,4 @@ "use strict";

const factHandlersByName = {
"size": parseSize,
"sizd": parseSize,
"size": parseSize, // File size
"sizd": parseSize, // Directory size
"unique": (value, info) => {

@@ -16,0 +16,0 @@ info.uniqueID = value;

{
"name": "basic-ftp",
"version": "5.0.3",
"version": "5.0.4",
"description": "FTP client for Node.js, supports FTPS over TLS, IPv6, Async/Await, and Typescript.",

@@ -40,12 +40,11 @@ "main": "dist/index",

"devDependencies": {
"@types/mocha": "9.1.1",
"@types/node": "20.0.0",
"@typescript-eslint/eslint-plugin": "5.59.2",
"@typescript-eslint/parser": "5.59.2",
"eslint": "8.39.0",
"@types/mocha": "10.0.6",
"@types/node": "20.10.4",
"@typescript-eslint/eslint-plugin": "6.14.0",
"@typescript-eslint/parser": "6.14.0",
"eslint": "8.55.0",
"mocha": "10.2.0",
"mock-fs": "5.1.4",
"rimraf": "3.0.2",
"typescript": "5.0.4"
"rimraf": "5.0.5",
"typescript": "5.3.3"
}
}
# Basic FTP
[![npm version](https://img.shields.io/npm/v/basic-ftp.svg)](https://www.npmjs.com/package/basic-ftp)
[![npm downloads](https://img.shields.io/npm/dm/basic-ftp)](https://www.npmjs.com/package/basic-ftp)
[![npm downloads](https://img.shields.io/npm/dw/basic-ftp)](https://www.npmjs.com/package/basic-ftp)
[![Node.js CI](https://github.com/patrickjuchli/basic-ftp/actions/workflows/nodejs.yml/badge.svg)](https://github.com/patrickjuchli/basic-ftp/actions/workflows/nodejs.yml)

@@ -6,0 +6,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc