v29.4-roots.1 · Commit 2: [PATCH 02/13] runtime: preserve shared operator controls
src/util/fs.h
Before: src/util/fs.h · After: src/util/fs.h
File metadata
index f841e0d76c578f3a303db655e0259f1a4d274b0a..56a71b042cd606e1825f312d38e37fe93b7d59db 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. The two line-number columns refer to before and after.
src/util/fs.h
CHANGED
|
@@ -90,6 +90,10 @@ static inline bool exists(const path& p)
|
|
|
90
90
|
{
|
|
91
91
|
return std::filesystem::exists(p);
|
|
92
92
|
}
|
|
93
|
+
static inline bool exists(const std::filesystem::file_status& s)
|
|
94
|
+
{
|
|
95
|
+
return std::filesystem::exists(s);
|
|
96
|
+
}
|
|
93
97
|
|
|
94
98
|
// Allow explicit quoted stream I/O.
|
|
95
99
|
static inline auto quoted(const std::string& s)
|