![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#include <file-system.hh>
Public Member Functions | |
| AutoDelete (AutoDelete &&x) noexcept | |
| AutoDelete & | operator= (AutoDelete &&x) noexcept |
| AutoDelete (const std::filesystem::path &p, bool recursive=true) | |
| AutoDelete (const AutoDelete &)=delete | |
| AutoDelete & | operator= (const AutoDelete &)=delete |
| void | deletePath () |
| void | cancel () noexcept |
| const std::filesystem::path & | path () const |
| PathView | view () const |
| operator const std::filesystem::path & () const | |
| operator PathView () const | |
Friends | |
| void | swap (AutoDelete &lhs, AutoDelete &rhs) noexcept |
Automatic cleanup of resources.
|
noexcept |
Cancel the pending deletion
| void nix::AutoDelete::deletePath | ( | ) |
Delete the file the path points to, and cancel this AutoDelete, so deletion is not attempted a second time by the destructor.
The destructor calls this, but ignoring any exception.