How to use the basic-ftp.FileType.File function in basic-ftp

To help you get started, we’ve selected a few basic-ftp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github qusly / qusly-core / src / utils / file.ts View on Github external
export const getFileType = (type: FileType): IFileType => {
  switch (type) {
    case FileType.Directory: {
      return 'folder';
    }
    case FileType.File: {
      return 'file';
    }
    case FileType.SymbolicLink: {
      return 'symbolic-link';
    }
  }

  return 'unknown';
}

basic-ftp

FTP client for Node.js, supports FTPS over TLS, IPv6, Async/Await, and Typescript.

MIT
Latest version published 3 months ago

Package Health Score

82 / 100
Full package analysis