v30.3-roots.1 · Commit 2: [PATCH 02/68] feat(runtime): preserve Roots operator controls on Core 30.3
src/util/fs.h
Before: src/util/fs.h · After: src/util/fs.h
File metadata
index 7c313e2072c520ffefd4d82618850bf91f279a83..d0cdce67693a7d9a84eec9673a604b9a2e234df3 100644
Download original patch · Release notes
Diff rows 1–10 of 10. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/util/fs.h
CHANGED
|
@@ -90,6 +90,10 @@ static inline bool exists(const path& p)
|
|
| 90 |
{
|
| 91 |
return std::filesystem::exists(p);
|
| 92 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
// Allow explicit quoted stream I/O.
|
| 95 |
static inline auto quoted(const std::string& s)
|
|
|
|
| 90 |
{
|
| 91 |
return std::filesystem::exists(p);
|
| 92 |
}
|
| 93 |
+
static inline bool exists(const std::filesystem::file_status& s)
|
| 94 |
+
{
|
| 95 |
+
return std::filesystem::exists(s);
|
| 96 |
+
}
|
| 97 |
|
| 98 |
// Allow explicit quoted stream I/O.
|
| 99 |
static inline auto quoted(const std::string& s)
|