apio
bc07cc94cb
All checks were successful
continuous-integration/drone/push Build is passing
Also, add copyright information to individual files. This is going to be a hassle to do for EVERY file.
30 lines
481 B
C++
30 lines
481 B
C++
/**
|
|
* @file Path.cpp
|
|
* @author apio (cloudapio.eu)
|
|
* @brief Dirfd-friendly Path class.
|
|
*
|
|
* @copyright Copyright (c) 2023, the Luna authors.
|
|
*
|
|
*/
|
|
|
|
#include <os/Path.h>
|
|
|
|
namespace os
|
|
{
|
|
Path::Path(const char* path) : m_dirfd(), m_name(path)
|
|
{
|
|
}
|
|
|
|
Path::Path(StringView path) : m_dirfd(), m_name(path)
|
|
{
|
|
}
|
|
|
|
Path::Path(int fd) : m_dirfd(fd), m_name()
|
|
{
|
|
}
|
|
|
|
Path::Path(int dirfd, StringView name) : m_dirfd(dirfd), m_name(name)
|
|
{
|
|
}
|
|
}
|