diff options
Diffstat (limited to 'src/posix_extras.h')
-rw-r--r-- | src/posix_extras.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/posix_extras.h b/src/posix_extras.h index b6dbdfd..f4e7c69 100644 --- a/src/posix_extras.h +++ b/src/posix_extras.h @@ -71,6 +71,10 @@ class File { File OpenAt(const char* path, int flags) const; File OpenAt(const char* path, int flags, mode_t mode) const; + // Removes the file at the path relative to the file descriptor. The path + // must indeed be relative (i.e., it must not start with '/'). + void UnlinkAt(const char* path) const; + private: File() {} |