25 lines
355 B
C++
25 lines
355 B
C++
// TJP COPYRIGHT HEADER
|
|
|
|
|
|
#ifdef TJP_CORE_HEADER_ONLY
|
|
#pragma once
|
|
#endif
|
|
|
|
#include <tjp/core/header_only/compile.h>
|
|
|
|
|
|
#include "unlink.hpp"
|
|
#include <tjp/core/exception/Exception.hpp>
|
|
|
|
#include <cstdio>
|
|
|
|
namespace tjp::core::file {
|
|
|
|
TJP_CORE_HEADER_ONLY_INLINE
|
|
bool unlink (const String &file)
|
|
{
|
|
return std::remove(file.data()) == 0;
|
|
}
|
|
|
|
} // namespace
|