OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 // file or directory, which will be moved recursively. | 39 // file or directory, which will be moved recursively. |
40 // Returns true if function succeeds. | 40 // Returns true if function succeeds. |
41 bool MoveFile(const Pathname& old_path, const Pathname& new_path) override; | 41 bool MoveFile(const Pathname& old_path, const Pathname& new_path) override; |
42 | 42 |
43 // Returns true if a pathname is a directory | 43 // Returns true if a pathname is a directory |
44 bool IsFolder(const Pathname& pathname) override; | 44 bool IsFolder(const Pathname& pathname) override; |
45 | 45 |
46 // Returns true of pathname represents an existing file | 46 // Returns true of pathname represents an existing file |
47 bool IsFile(const Pathname& pathname) override; | 47 bool IsFile(const Pathname& pathname) override; |
48 | 48 |
49 // Returns true if pathname refers to no filesystem object, every parent | |
50 // directory either exists, or is also absent. | |
51 bool IsAbsent(const Pathname& pathname) override; | |
52 | |
53 std::string TempFilename(const Pathname& dir, | 49 std::string TempFilename(const Pathname& dir, |
54 const std::string& prefix) override; | 50 const std::string& prefix) override; |
55 | 51 |
56 bool GetFileSize(const Pathname& path, size_t* size) override; | 52 bool GetFileSize(const Pathname& path, size_t* size) override; |
57 | 53 |
58 private: | 54 private: |
59 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_MAC) | 55 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_MAC) |
60 static char* provided_app_data_folder_; | 56 static char* provided_app_data_folder_; |
61 static char* provided_app_temp_folder_; | 57 static char* provided_app_temp_folder_; |
62 #else | 58 #else |
63 static char* app_temp_path_; | 59 static char* app_temp_path_; |
64 #endif | 60 #endif |
65 | 61 |
66 static char* CopyString(const std::string& str); | 62 static char* CopyString(const std::string& str); |
67 }; | 63 }; |
68 | 64 |
69 } // namespace rtc | 65 } // namespace rtc |
70 | 66 |
71 #endif // WEBRTC_RTC_BASE_UNIXFILESYSTEM_H_ | 67 #endif // WEBRTC_RTC_BASE_UNIXFILESYSTEM_H_ |
OLD | NEW |