diff options
author | Rohan Jain <rohanj@google.com> | 2016-09-26 19:08:22 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-09-26 20:18:02 -0700 |
commit | 01b5ab1bc850ecff5c35ac6f936f3952b81208cd (patch) | |
tree | 13aa5b4ee5f478785b9336fd666c3cc5314a4297 /tensorflow/core/platform/env.h | |
parent | 2dcd502fa4339788a8d7299e685a9432bbb51d0d (diff) |
Move Env::GetMatchingPaths implementation to FileSystem instead.
Change: 134358309
Diffstat (limited to 'tensorflow/core/platform/env.h')
-rw-r--r-- | tensorflow/core/platform/env.h | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/tensorflow/core/platform/env.h b/tensorflow/core/platform/env.h index 797e1eae7c..8057a2a5eb 100644 --- a/tensorflow/core/platform/env.h +++ b/tensorflow/core/platform/env.h @@ -142,33 +142,13 @@ class Env { Status GetChildren(const string& dir, std::vector<string>* result); /// \brief Returns true if the path matches the given pattern. The wildcards - /// allowed in pattern are described below (GetMatchingPaths). + /// allowed in pattern are described in FileSystem::GetMatchingPaths. virtual bool MatchPath(const string& path, const string& pattern) = 0; /// \brief Given a pattern, stores in *results the set of paths that matches /// that pattern. *results is cleared. /// - /// pattern must match all of a name, not just a substring. - // - /// pattern: { term } - /// term: - /// '*': matches any sequence of non-'/' characters - /// '?': matches a single non-'/' character - /// '[' [ '^' ] { match-list } ']': - /// matches any single character (not) on the list - /// c: matches character c (c != '*', '?', '\\', '[') - /// '\\' c: matches character c - /// character-range: - /// c: matches character c (c != '\\', '-', ']') - /// '\\' c: matches character c - /// lo '-' hi: matches character c for lo <= c <= hi - /// - /// Typical return codes - /// * OK - no errors - /// * UNIMPLEMENTED - Some underlying functions (like GetChildren) are not - /// implemented - /// The default implementation uses a combination of GetChildren, MatchPath - /// and IsDirectory. + /// More details about `pattern` in FileSystem::GetMatchingPaths. virtual Status GetMatchingPaths(const string& pattern, std::vector<string>* results); |