WriteIndex

API definition

APP_ERROR WriteIndex(const std::string& indexPath);

Function

Writes the index to a drive.

Input

const std::string& indexPath: data file path.

Output

N/A

Return value

APP_ERROR: return status. For details, see Return Code Reference.

Restrictions

  • Ensure that the directory where indexPath is located exists and the running user has the write permission on the directory. For security hardening, the directory level cannot contain soft links.
  • When the file already exists, it will be overwritten. In this case, the program running user should be the owner of the file.