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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 bool recursive); | 175 bool recursive); |
176 | 176 |
177 // Returns true if the given path exists on the local filesystem, | 177 // Returns true if the given path exists on the local filesystem, |
178 // false otherwise. | 178 // false otherwise. |
179 bool PathExists(const FilePath& path); | 179 bool PathExists(const FilePath& path); |
180 // Deprecated temporary compatibility function. | 180 // Deprecated temporary compatibility function. |
181 bool PathExists(const std::wstring& path); | 181 bool PathExists(const std::wstring& path); |
182 | 182 |
183 // Returns true if the given path is writable by the user, false otherwise. | 183 // Returns true if the given path is writable by the user, false otherwise. |
184 bool PathIsWritable(const FilePath& path); | 184 bool PathIsWritable(const FilePath& path); |
185 // Deprecated temporary compatibility function. | |
186 bool PathIsWritable(const std::wstring& path); | |
187 | 185 |
188 // Returns true if the given path exists and is a directory, false otherwise. | 186 // Returns true if the given path exists and is a directory, false otherwise. |
189 bool DirectoryExists(const FilePath& path); | 187 bool DirectoryExists(const FilePath& path); |
190 // Deprecated temporary compatibility function. | 188 // Deprecated temporary compatibility function. |
191 bool DirectoryExists(const std::wstring& path); | 189 bool DirectoryExists(const std::wstring& path); |
192 | 190 |
193 #if defined(OS_WIN) | 191 #if defined(OS_WIN) |
194 // Gets the creation time of the given file (expressed in the local timezone), | 192 // Gets the creation time of the given file (expressed in the local timezone), |
195 // and returns it via the creation_time parameter. Returns true if successful, | 193 // and returns it via the creation_time parameter. Returns true if successful, |
196 // false otherwise. | 194 // false otherwise. |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 | 542 |
545 // Renames a file using the SHFileOperation API to ensure that the target file | 543 // Renames a file using the SHFileOperation API to ensure that the target file |
546 // gets the correct default security descriptor in the new path. | 544 // gets the correct default security descriptor in the new path. |
547 bool RenameFileAndResetSecurityDescriptor( | 545 bool RenameFileAndResetSecurityDescriptor( |
548 const FilePath& source_file_path, | 546 const FilePath& source_file_path, |
549 const FilePath& target_file_path); | 547 const FilePath& target_file_path); |
550 | 548 |
551 } // namespace file_util | 549 } // namespace file_util |
552 | 550 |
553 #endif // BASE_FILE_UTIL_H_ | 551 #endif // BASE_FILE_UTIL_H_ |
OLD | NEW |