Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
filesystem.cc File Reference
#include "ortools/base/filesystem.h"
#include <filesystem>
#include <regex>
#include "absl/status/status.h"
#include "absl/strings/str_replace.h"

Go to the source code of this file.

Namespaces

namespace  file
 

Macros

#define SV_ABSL_TO_STD(X)
 Converts a absl::string_view into an object compatible with std::filesystem.
 

Functions

absl::Status file::Match (std::string_view pattern, std::vector< std::string > *result, const file::Options &options)
 
absl::Status file::IsDirectory (std::string_view path, const file::Options &options)
 
absl::Status file::RecursivelyCreateDir (std::string_view path, const file::Options &options)
 

Macro Definition Documentation

◆ SV_ABSL_TO_STD

#define SV_ABSL_TO_STD ( X)
Value:
std::string(X)

Converts a absl::string_view into an object compatible with std::filesystem.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition at line 28 of file filesystem.cc.