13 #ifndef __STOUT_OS_TOUCH_HPP__
14 #define __STOUT_OS_TOUCH_HPP__
41 return Error(
"Failed to open file: " + fd.
error());
54 #endif // __STOUT_OS_TOUCH_HPP__
Try< Nothing > touch(const std::string &path)
Definition: touch.hpp:32
bool exists(const std::string &path)
Definition: exists.hpp:26
Definition: errorbase.hpp:35
const mode_t S_IRGRP
Definition: windows.hpp:319
const mode_t S_IWUSR
Definition: windows.hpp:312
#define O_CREAT
Definition: fcntl.hpp:28
const mode_t S_IRUSR
Definition: windows.hpp:311
Try< Nothing > close(int fd)
Definition: close.hpp:24
Try< Nothing > utime(const std::string &path)
Definition: utime.hpp:32
static Try error(const E &e)
Definition: try.hpp:42
bool isError() const
Definition: try.hpp:71
Try< int_fd > open(const std::string &path, int oflag, mode_t mode=0)
Definition: open.hpp:39
#define O_RDWR
Definition: fcntl.hpp:27
const mode_t S_IROTH
Definition: windows.hpp:327
const T & get() const
Definition: try.hpp:73