aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/platform/env.h
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/platform/env.h')
-rw-r--r--tensorflow/core/platform/env.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tensorflow/core/platform/env.h b/tensorflow/core/platform/env.h
index 34aaf3f78b..4ce4e0b4e0 100644
--- a/tensorflow/core/platform/env.h
+++ b/tensorflow/core/platform/env.h
@@ -214,6 +214,9 @@ class Env {
/// replaced.
Status RenameFile(const string& src, const string& target);
+ /// \brief Copy the src to target.
+ Status CopyFile(const string& src, const string& target);
+
/// \brief Returns the absolute path of the current executable. It resolves
/// symlinks if there is any.
string GetExecutablePath();
@@ -381,6 +384,11 @@ struct ThreadOptions {
size_t guard_size = 0; // 0: use system default value
};
+/// A utility routine: copy contents of `src` in file system `src_fs`
+/// to `target` in file system `target_fs`.
+Status FileSystemCopyFile(FileSystem* src_fs, const string& src,
+ FileSystem* target_fs, const string& target);
+
/// A utility routine: reads contents of named file into `*data`
Status ReadFileToString(Env* env, const string& fname, string* data);