OLD | NEW |
---|---|
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_FILE_UTIL_H_ |
9 #define BASE_FILE_UTIL_H_ | 9 #define BASE_FILE_UTIL_H_ |
10 | 10 |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
339 #if defined(OS_WIN) | 339 #if defined(OS_WIN) |
340 WIN32_FIND_DATA find_data_; | 340 WIN32_FIND_DATA find_data_; |
341 HANDLE find_handle_; | 341 HANDLE find_handle_; |
342 #elif defined(OS_POSIX) | 342 #elif defined(OS_POSIX) |
343 FTS* fts_; | 343 FTS* fts_; |
344 #endif | 344 #endif |
345 | 345 |
346 DISALLOW_EVIL_CONSTRUCTORS(FileEnumerator); | 346 DISALLOW_EVIL_CONSTRUCTORS(FileEnumerator); |
347 }; | 347 }; |
348 | 348 |
349 // Renames a file using the MoveFileEx API and ensures that the target file gets | 349 // Renames a file using the SHFileOperation API to ensures that the target file |
Paul Godavari
2008/10/25 00:42:16
'ensure'
| |
350 // the correct security descriptor in the new path. | 350 // gets the correct default security descriptor in the new path. |
351 bool RenameFileAndResetSecurityDescriptor( | 351 bool RenameFileAndResetSecurityDescriptor( |
352 const std::wstring& source_file_path, | 352 const std::wstring& source_file_path, |
353 const std::wstring& target_file_path); | 353 const std::wstring& target_file_path); |
354 | 354 |
355 } // namespace file_util | 355 } // namespace file_util |
356 | 356 |
357 #endif // BASE_FILE_UTIL_H_ | 357 #endif // BASE_FILE_UTIL_H_ |
OLD | NEW |