You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #pragma once
-
- #include "file.h"
-
- namespace cppfs
- {
-
- /* file */
-
- const file& file::remove() const
- {
- using namespace std::string_literals;
-
- auto& s = _path.str();
- if (unlink(s.c_str()))
- throw cppcore::error_exception("Unable to remove file: "s + _path.str(), errno);
-
- return *this;
- }
-
- }
|