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

# FtpChdir(3)

Change working directory on server.

## NAME

FtpChdir - Change working directory on server.

## SYNOPSIS

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

**int FtpChdir(const char \****path***, netbuf \****nControl***);**

## PARAMETERS

- **path**

  Specifies the desired working directory on the server.

- **nControl**

  A handle returned by FtpConnect().

## DESCRIPTION

Sends a change working directory request to the server using the specified path.

## RETURN VALUE

Returns 1 if successful or 0 on error.
