| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file contains utility functions for dealing with the local | 5 // This file contains utility functions for dealing with the local |
| 6 // filesystem. | 6 // filesystem. |
| 7 | 7 |
| 8 #ifndef BASE_FILE_UTIL_H_ | 8 #ifndef BASE_FILES_FILE_UTIL_H_ |
| 9 #define BASE_FILE_UTIL_H_ | 9 #define BASE_FILES_FILE_UTIL_H_ |
| 10 | 10 |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 | 12 |
| 13 #if defined(OS_WIN) | 13 #if defined(OS_WIN) |
| 14 #include <windows.h> | 14 #include <windows.h> |
| 15 #elif defined(OS_POSIX) | 15 #elif defined(OS_POSIX) |
| 16 #include <sys/stat.h> | 16 #include <sys/stat.h> |
| 17 #include <unistd.h> | 17 #include <unistd.h> |
| 18 #endif | 18 #endif |
| 19 | 19 |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 // Returns true if all operations succeed. | 429 // Returns true if all operations succeed. |
| 430 // This function simulates Move(), but unlike Move() it works across volumes. | 430 // This function simulates Move(), but unlike Move() it works across volumes. |
| 431 // This function is not transactional. | 431 // This function is not transactional. |
| 432 BASE_EXPORT bool CopyAndDeleteDirectory(const FilePath& from_path, | 432 BASE_EXPORT bool CopyAndDeleteDirectory(const FilePath& from_path, |
| 433 const FilePath& to_path); | 433 const FilePath& to_path); |
| 434 #endif // defined(OS_WIN) | 434 #endif // defined(OS_WIN) |
| 435 | 435 |
| 436 } // namespace internal | 436 } // namespace internal |
| 437 } // namespace base | 437 } // namespace base |
| 438 | 438 |
| 439 #endif // BASE_FILE_UTIL_H_ | 439 #endif // BASE_FILES_FILE_UTIL_H_ |
| OLD | NEW |