---
name: "FtpNlst"
section: "3"
platform: "linux"
package: "ftplib-dev"
version: "3.1-1-9"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/FtpNlst"
---

# FtpNlst(3)

Performs a terse directory.

## NAME

FtpNlst - Performs a terse directory.

## SYNOPSIS

**#include \<ftplib.h\>**\

**int FtpNlst(const char \****output***, const char \****path***,**

**netbuf \****nControl***);**

## PARAMETERS

- **output**

  Specifies the name of a file to receive the directory listing.

- **path**

  Specifies an argument to 'ls' on the remote system.

- **nControl**

  A handle returned by FtpConnect().

## DESCRIPTION

Performs a short form directory listing of the specified path on the remote system. The results are written to the specified file.

## RETURN VALUE

Returns 1 if successful or 0 on error.
