Interface with FS
µC/FTPc can transfer files and memory arrays; this module may hence be used with or without the presence of a file system. The choice is made using a configuration variable which enables or disables the compilation of file system related functions (see section Configuration for more details).
When configured to use a file system, the sample application that comes with µC/FTPc assumes the presence of µC/TCP-IP’s µC/FS port, as mentioned in section Getting Started. It is possible to port µC/FTPc so it is used with other file system by providing an appropriate implementation of net_fs.c
. and net_fs.h
. Example template files to port the file system are available in the uC-TCPIP-V2\FS\Template
directory. Please refer to section TCPIP Network File System Abstraction Layer of µC/TCP-IP’s User’s Manual.
Also note that when used with µC/TCP-IP’s µC/FS port, µC/FTPc expects a full path using the path delimiter returned by NetFS_CfgPathGetSepChar()
. When that path delimiter is the reverse solidus (backslash), a path to a particular file would look like:
\test_dir\test_file