NuDB Logo

PrevUpHomeNext

erase_file (1 of 2 overloads)

Erase a file if it exists.

template<
    class File = native_file>
void
erase_file(
    path_type const& path,
    error_code& ec);

This function attempts to erase the specified file. No error is generated if the file does not already exist.

Parameters

path

The path to the file to erase.

ec

Set to the error, if any occurred.

File

A type meeting the requirements of File. If this type is unspecified, native_file is used.


PrevUpHomeNext