![]() |
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.
|
Name |
Description |
|---|---|
|
|
The path to the file to erase. |
|
|
Set to the error, if any occurred. |
|
Type |
Description |
|---|---|
|
|
A type meeting the requirements of File. If this type is unspecified, |9|native_file is used. |