mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-15 02:18:39 +08:00
Remove std::filesystem usage for old OSX
This commit is contained in:
parent
a77fcb5448
commit
0eadf91028
@ -18,13 +18,14 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <filesystem>
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <random>
|
#include <random>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
|
#include "flow/Platform.h"
|
||||||
|
|
||||||
#define FDB_API_VERSION 710
|
#define FDB_API_VERSION 710
|
||||||
#include "foundationdb/fdb_c.h"
|
#include "foundationdb/fdb_c.h"
|
||||||
|
|
||||||
@ -77,8 +78,7 @@ int main(int argc, char** argv) {
|
|||||||
// Eventually there's a new trace file for this test ending in .tmp
|
// Eventually there's a new trace file for this test ending in .tmp
|
||||||
std::string name;
|
std::string name;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
for (const auto& entry : std::filesystem::directory_iterator(".")) {
|
for (const auto& path : platform::listFiles(".")) {
|
||||||
auto path = entry.path().string();
|
|
||||||
if (path.find(file_identifier) != std::string::npos && path.find(".simulated.") == std::string::npos) {
|
if (path.find(file_identifier) != std::string::npos && path.find(".simulated.") == std::string::npos) {
|
||||||
assert(path.substr(path.size() - trace_partial_file_suffix.size()) == trace_partial_file_suffix);
|
assert(path.substr(path.size() - trace_partial_file_suffix.size()) == trace_partial_file_suffix);
|
||||||
name = path;
|
name = path;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user