Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(400)

Side by Side Diff: base/file_util.h

Issue 11896097: Remove GetFileCreationLocalTime. It is unused. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | base/file_util_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_FILE_UTIL_H_
9 #define BASE_FILE_UTIL_H_ 9 #define BASE_FILE_UTIL_H_
10 10
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // Returns true if the given path exists on the local filesystem, 146 // Returns true if the given path exists on the local filesystem,
147 // false otherwise. 147 // false otherwise.
148 BASE_EXPORT bool PathExists(const FilePath& path); 148 BASE_EXPORT bool PathExists(const FilePath& path);
149 149
150 // Returns true if the given path is writable by the user, false otherwise. 150 // Returns true if the given path is writable by the user, false otherwise.
151 BASE_EXPORT bool PathIsWritable(const FilePath& path); 151 BASE_EXPORT bool PathIsWritable(const FilePath& path);
152 152
153 // Returns true if the given path exists and is a directory, false otherwise. 153 // Returns true if the given path exists and is a directory, false otherwise.
154 BASE_EXPORT bool DirectoryExists(const FilePath& path); 154 BASE_EXPORT bool DirectoryExists(const FilePath& path);
155 155
156 #if defined(OS_WIN)
157 // Gets the creation time of the given file (expressed in the local timezone),
158 // and returns it via the creation_time parameter. Returns true if successful,
159 // false otherwise.
160 BASE_EXPORT bool GetFileCreationLocalTime(const std::wstring& filename,
161 LPSYSTEMTIME creation_time);
162
163 // Same as above, but takes a previously-opened file handle instead of a name.
164 BASE_EXPORT bool GetFileCreationLocalTimeFromHandle(HANDLE file_handle,
165 LPSYSTEMTIME creation_time);
166 #endif // defined(OS_WIN)
167
168 // Returns true if the contents of the two files given are equal, false 156 // Returns true if the contents of the two files given are equal, false
169 // otherwise. If either file can't be read, returns false. 157 // otherwise. If either file can't be read, returns false.
170 BASE_EXPORT bool ContentsEqual(const FilePath& filename1, 158 BASE_EXPORT bool ContentsEqual(const FilePath& filename1,
171 const FilePath& filename2); 159 const FilePath& filename2);
172 160
173 // Returns true if the contents of the two text files given are equal, false 161 // Returns true if the contents of the two text files given are equal, false
174 // otherwise. This routine treats "\r\n" and "\n" as equivalent. 162 // otherwise. This routine treats "\r\n" and "\n" as equivalent.
175 BASE_EXPORT bool TextContentsEqual(const FilePath& filename1, 163 BASE_EXPORT bool TextContentsEqual(const FilePath& filename1,
176 const FilePath& filename2); 164 const FilePath& filename2);
177 165
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 }; 608 };
621 609
622 // Attempts determine the FileSystemType for |path|. 610 // Attempts determine the FileSystemType for |path|.
623 // Returns false if |path| doesn't exist. 611 // Returns false if |path| doesn't exist.
624 BASE_EXPORT bool GetFileSystemType(const FilePath& path, FileSystemType* type); 612 BASE_EXPORT bool GetFileSystemType(const FilePath& path, FileSystemType* type);
625 #endif 613 #endif
626 614
627 } // namespace file_util 615 } // namespace file_util
628 616
629 #endif // BASE_FILE_UTIL_H_ 617 #endif // BASE_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | base/file_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698