# FS_ChangeDir

## Syntax

  `#include <nitro/fs.h>`
  `BOOL FS_ChangeDir( const char *dir );`

## Arguments

`dir` | The path of the specified current directory.

## Return Values

If it correctly sets the current directory, it returns TRUE. Otherwise it returns FALSE.

## Description

This sets the current directory to the specified path name. For more information on path name formatting, see the description of the `FS_OpenFileEx` function. You can only set an existing directory to be the current directory.

## See Also

`FS_OpenFileEx
FS_FindDir
FS_FILE_NAME_MAX`

## Revision History

2008/10/02 Updated the See Also list.
2004/04/02 Revised description due to the elimination of the path name length restriction.
2004/04/01 Initial version.

CONFIDENTIAL