您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

22 行
345 B

  1. #pragma once
  2. #include "file.h"
  3. namespace cppfs
  4. {
  5. /* file */
  6. const file& file::remove() const
  7. {
  8. using namespace std::string_literals;
  9. auto& s = _path.str();
  10. if (unlink(s.c_str()))
  11. throw cppcore::error_exception("Unable to remove file: "s + _path.str(), errno);
  12. return *this;
  13. }
  14. }