Skip to content
Bitcoin Roots

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. 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)