ftp download of xml file to file system

I want to download xml file to flash filesystem but if i use FsInstallfilesystem() defined in ftpsvrfs.c to create file system interface in server my application crashes. the path is FLASH0/config.xml i am trying to download in ascii mode
can anybody help me on this.

Hello

There is an example application in the \examples directory entitled naftpsr_fs (gnu cli) (there is a similar ESP-enabled application - ftp server file system sample.). If you run that sample application adn down load files, does it also crash?