aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/platform/file_system_helper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/platform/file_system_helper.cc')
-rw-r--r--tensorflow/core/platform/file_system_helper.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/platform/file_system_helper.cc b/tensorflow/core/platform/file_system_helper.cc
index 22c5057281..0ba0e6304f 100644
--- a/tensorflow/core/platform/file_system_helper.cc
+++ b/tensorflow/core/platform/file_system_helper.cc
@@ -59,7 +59,7 @@ Status GetMatchingPaths(FileSystem* fs, Env* env, const string& pattern,
string fixed_prefix = pattern.substr(0, pattern.find_first_of("*?[\\"));
string eval_pattern = pattern;
std::vector<string> all_files;
- string dir = io::Dirname(fixed_prefix).ToString();
+ string dir = std::string(io::Dirname(fixed_prefix));
// If dir is empty then we need to fix up fixed_prefix and eval_pattern to
// include . as the top level directory.
if (dir.empty()) {