TensorFlow Serving C++ API Documentation
file_probing_env.cc
1 /* Copyright 2016 Google Inc. All Rights Reserved.
2 
3 Licensed under the Apache License, Version 2.0 (the "License");
4 you may not use this file except in compliance with the License.
5 You may obtain a copy of the License at
6 
7  http://www.apache.org/licenses/LICENSE-2.0
8 
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14 ==============================================================================*/
15 
16 #include "tensorflow_serving/util/file_probing_env.h"
17 
18 #include <vector>
19 
20 namespace tensorflow {
21 namespace serving {
22 
23 Status TensorflowFileProbingEnv::FileExists(const string& fname) {
24  return env_->FileExists(fname);
25 }
26 
27 Status TensorflowFileProbingEnv::GetChildren(const string& dir,
28  std::vector<string>* children) {
29  return env_->GetChildren(dir, children);
30 }
31 
32 Status TensorflowFileProbingEnv::IsDirectory(const string& fname) {
33  return env_->IsDirectory(fname);
34 }
35 
36 Status TensorflowFileProbingEnv::GetFileSize(const string& fname,
37  uint64_t* file_size) {
38  return env_->GetFileSize(fname, file_size);
39 }
40 
41 } // namespace serving
42 } // namespace tensorflow