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:36
const mode_t S_IRGRP
Definition: windows.hpp:313
T & get()&
Definition: try.hpp:80
const mode_t S_IWUSR
Definition: windows.hpp:306
Try< int_fd > open(const std::string &path, int oflag, mode_t mode=0)
Definition: open.hpp:35
Definition: posix_signalhandler.hpp:23
const mode_t S_IRUSR
Definition: windows.hpp:305
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:43
bool isError() const
Definition: try.hpp:78
const mode_t S_IROTH
Definition: windows.hpp:321