SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
The sl_FsGetInfo() function retrieves information regarding a specific file. For secure files, the file requires a token. For secure files where the input token is zero, only a part of the information of the file is retrieved, because the tokens and the creation token flags are hidden.
Trying to request information for a file that does not exist results in an error (FILE_NOT_EXISTS). Trying to request information for a file which has no valid copy results in retrieving the file information, but the return value will be an error (SL_FS_INFO_NOT_VALID_EXISTS).
Example:
_i16 Status;
_u8 DeviceFileName[180];
_u32 Token;
SlFsFileInfo_t FsFileInfo;
Status = sl_FsGetInfo( DeviceFileName, Token, &FsFileInfo);
if( Status < 0 )
{
/*error */
}