File tree Expand file tree Collapse file tree 5 files changed +7
-9
lines changed Expand file tree Collapse file tree 5 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 26
26
#include < scheduler.h>
27
27
#include < script/sigcache.h>
28
28
#include < util/chaintype.h>
29
+ #include < util/fs.h>
29
30
#include < util/thread.h>
30
31
#include < validation.h>
31
32
#include < validationinterface.h>
32
33
33
34
#include < cassert>
34
35
#include < cstdint>
35
- #include < filesystem>
36
36
#include < functional>
37
37
#include < iosfwd>
38
38
#include < memory>
@@ -50,8 +50,8 @@ int main(int argc, char* argv[])
50
50
<< " BREAK IN FUTURE VERSIONS. DO NOT USE ON YOUR ACTUAL DATADIR." << std::endl;
51
51
return 1 ;
52
52
}
53
- std::filesystem:: path abs_datadir = std::filesystem:: absolute (argv[1 ]);
54
- std::filesystem ::create_directories (abs_datadir);
53
+ fs:: path abs_datadir{ fs:: absolute (argv[1 ])} ;
54
+ fs ::create_directories (abs_datadir);
55
55
56
56
57
57
// SETUP: Context
Original file line number Diff line number Diff line change 28
28
#include < cstdint>
29
29
#include < cstdlib>
30
30
#include < cstring>
31
- #include < filesystem>
32
31
#include < map>
33
32
#include < optional>
34
33
#include < stdexcept>
Original file line number Diff line number Diff line change @@ -1031,8 +1031,8 @@ void CBlockPolicyEstimator::FlushUnconfirmed()
1031
1031
1032
1032
std::chrono::hours CBlockPolicyEstimator::GetFeeEstimatorFileAge ()
1033
1033
{
1034
- auto file_time = std::filesystem:: last_write_time (m_estimation_filepath);
1035
- auto now = std::filesystem:: file_time_type::clock::now ();
1034
+ auto file_time{ fs:: last_write_time (m_estimation_filepath)} ;
1035
+ auto now{ fs:: file_time_type::clock::now ()} ;
1036
1036
return std::chrono::duration_cast<std::chrono::hours>(now - file_time);
1037
1037
}
1038
1038
Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ static inline path PathFromString(const std::string& string)
184
184
* already exists or is a symlink to an existing directory.
185
185
* This is a temporary workaround for an issue in libstdc++ that has been fixed
186
186
* upstream [PR101510].
187
+ * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101510
187
188
*/
188
189
static inline bool create_directories (const std::filesystem::path& p)
189
190
{
Original file line number Diff line number Diff line change 11
11
12
12
#include < logging.h>
13
13
#include < sync.h>
14
- #include < tinyformat.h>
15
14
#include < util/fs.h>
16
15
#include < util/getuniquepath.h>
17
16
#include < util/syserror.h>
18
17
19
18
#include < cerrno>
20
- #include < filesystem>
21
19
#include < fstream>
22
20
#include < map>
23
21
#include < memory>
@@ -263,7 +261,7 @@ bool RenameOver(fs::path src, fs::path dest)
263
261
{
264
262
#ifdef __MINGW64__
265
263
// This is a workaround for a bug in libstdc++ which
266
- // implements std::filesystem ::rename with _wrename function.
264
+ // implements fs ::rename with _wrename function.
267
265
// This bug has been fixed in upstream:
268
266
// - GCC 10.3: 8dd1c1085587c9f8a21bb5e588dfe1e8cdbba79e
269
267
// - GCC 11.1: 1dfd95f0a0ca1d9e6cbc00e6cbfd1fa20a98f312
You can’t perform that action at this time.
0 commit comments