...
Anchor
When an FTP client tries to access your µC/FTPs server, it sends a user name and a password. Authentication of these user name and password is out of µC/FTPs’ scope. Thus, these user name and password must be validated and some information about the user’s home directory and browsing permission must be returned by your application.
Anchor
CPU_BOOLEAN FTPs_AuthUser(FTPs_SESSION_STRUCT *ftp_session);
...
ftp_session->BasePath
, represents the highest directory in the file system that the user is allowed to see and access. The other one, the relative path, located at ftp_session->RelPath
represents the current relative directory for base path that the user sees and access. Here’s some concrete exemples. ...
user1
” could access all the RAM disk by setting its base path to “ram“ram:0:
” and “user2” “user2
” the IDE disk with the “ide“ide:0:
” base path. Switching from on device to another would then be performed by issuing the “USER” and “PASS” “USER
” and “PASS
” FTP commands.