| 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 20 matching lines...) Expand all Loading... |
| 31 // the folder | 31 // the folder |
| 32 // Returns true if the file is successfully moved | 32 // Returns true if the file is successfully moved |
| 33 bool MoveFile(const Pathname& old_path, const Pathname& new_path) override; | 33 bool MoveFile(const Pathname& old_path, const Pathname& new_path) override; |
| 34 | 34 |
| 35 // Returns true if a pathname is a directory | 35 // Returns true if a pathname is a directory |
| 36 bool IsFolder(const Pathname& pathname) override; | 36 bool IsFolder(const Pathname& pathname) override; |
| 37 | 37 |
| 38 // Returns true if a file exists at path | 38 // Returns true if a file exists at path |
| 39 bool IsFile(const Pathname& path) override; | 39 bool IsFile(const Pathname& path) override; |
| 40 | 40 |
| 41 // Returns true if pathname refers to no filesystem object, every parent | |
| 42 // directory either exists, or is also absent. | |
| 43 bool IsAbsent(const Pathname& pathname) override; | |
| 44 | |
| 45 // All of the following functions set pathname and return true if successful. | 41 // All of the following functions set pathname and return true if successful. |
| 46 // Returned paths always include a trailing backslash. | 42 // Returned paths always include a trailing backslash. |
| 47 // If create is true, the path will be recursively created. | 43 // If create is true, the path will be recursively created. |
| 48 // If append is non-null, it will be appended (and possibly created). | 44 // If append is non-null, it will be appended (and possibly created). |
| 49 | 45 |
| 50 std::string TempFilename(const Pathname& dir, | 46 std::string TempFilename(const Pathname& dir, |
| 51 const std::string& prefix) override; | 47 const std::string& prefix) override; |
| 52 | 48 |
| 53 bool GetFileSize(const Pathname& path, size_t* size) override; | 49 bool GetFileSize(const Pathname& path, size_t* size) override; |
| 54 }; | 50 }; |
| 55 | 51 |
| 56 } // namespace rtc | 52 } // namespace rtc |
| 57 | 53 |
| 58 #endif // WEBRTC_RTC_BASE_WIN32FILESYSTEM_H_ | 54 #endif // WEBRTC_RTC_BASE_WIN32FILESYSTEM_H_ |
| OLD | NEW |