Page MenuHomePhorge

file-guard.hpp
No OneTemporary

Size
322 B
Referenced Files
None
Subscribers
None

file-guard.hpp

/*
* This file is part of libkazv.
* SPDX-FileCopyrightText: 2021 Tusooa Zhu <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#pragma once
#include <filesystem>
struct FileGuard
{
inline ~FileGuard() {
std::filesystem::remove(m_filename);
}
std::filesystem::path m_filename;
};

File Metadata

Mime Type
text/x-c
Expires
Sat, Nov 23, 9:54 PM (1 d, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39142
Default Alt Text
file-guard.hpp (322 B)

Event Timeline