aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/platform/file_system.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/platform/file_system.cc')
-rw-r--r--tensorflow/core/platform/file_system.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/platform/file_system.cc b/tensorflow/core/platform/file_system.cc
index b55e94d552..922773684b 100644
--- a/tensorflow/core/platform/file_system.cc
+++ b/tensorflow/core/platform/file_system.cc
@@ -158,7 +158,7 @@ Status FileSystem::RecursivelyCreateDir(const string& dirname) {
std::reverse(sub_dirs.begin(), sub_dirs.end());
// Now create the directories.
- string built_path = remaining_dir.ToString();
+ string built_path = std::string(remaining_dir);
for (const StringPiece sub_dir : sub_dirs) {
built_path = io::JoinPath(built_path, sub_dir);
Status status = CreateDir(io::CreateURI(scheme, host, built_path));