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

Side by Side Diff: base/files/file_util.h

Issue 2434103005: Do not replace up-to-date System Flash with Component Flash. (Closed)
Patch Set: Through #10 Created 4 years, 2 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
« no previous file with comments | « no previous file | base/files/file_util_unittest.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_FILES_FILE_UTIL_H_ 8 #ifndef BASE_FILES_FILE_UTIL_H_
9 #define BASE_FILES_FILE_UTIL_H_ 9 #define BASE_FILES_FILE_UTIL_H_
10 10
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // a drive letter ("C:\..."). Return false if no such path exists. 287 // a drive letter ("C:\..."). Return false if no such path exists.
288 BASE_EXPORT bool DevicePathToDriveLetterPath(const FilePath& device_path, 288 BASE_EXPORT bool DevicePathToDriveLetterPath(const FilePath& device_path,
289 FilePath* drive_letter_path); 289 FilePath* drive_letter_path);
290 290
291 // Given an existing file in |path|, set |real_path| to the path 291 // Given an existing file in |path|, set |real_path| to the path
292 // in native NT format, of the form "\Device\HarddiskVolumeXX\..". 292 // in native NT format, of the form "\Device\HarddiskVolumeXX\..".
293 // Returns false if the path can not be found. Empty files cannot 293 // Returns false if the path can not be found. Empty files cannot
294 // be resolved with this function. 294 // be resolved with this function.
295 BASE_EXPORT bool NormalizeToNativeFilePath(const FilePath& path, 295 BASE_EXPORT bool NormalizeToNativeFilePath(const FilePath& path,
296 FilePath* nt_path); 296 FilePath* nt_path);
297
298 // Given an existing file in |path|, returns whether this file is on a network
299 // drive or not. If |path| does not exist, this function returns false.
300 BASE_EXPORT bool IsOnNetworkDrive(const base::FilePath& path);
301 #endif 297 #endif
302 298
303 // This function will return if the given file is a symlink or not. 299 // This function will return if the given file is a symlink or not.
304 BASE_EXPORT bool IsLink(const FilePath& file_path); 300 BASE_EXPORT bool IsLink(const FilePath& file_path);
305 301
306 // Returns information about the given file path. 302 // Returns information about the given file path.
307 BASE_EXPORT bool GetFileInfo(const FilePath& file_path, File::Info* info); 303 BASE_EXPORT bool GetFileInfo(const FilePath& file_path, File::Info* info);
308 304
309 // Sets the time of the last access and the time of the last modification. 305 // Sets the time of the last access and the time of the last modification.
310 BASE_EXPORT bool TouchFile(const FilePath& path, 306 BASE_EXPORT bool TouchFile(const FilePath& path,
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 // This function simulates Move(), but unlike Move() it works across volumes. 448 // This function simulates Move(), but unlike Move() it works across volumes.
453 // This function is not transactional. 449 // This function is not transactional.
454 BASE_EXPORT bool CopyAndDeleteDirectory(const FilePath& from_path, 450 BASE_EXPORT bool CopyAndDeleteDirectory(const FilePath& from_path,
455 const FilePath& to_path); 451 const FilePath& to_path);
456 #endif // defined(OS_WIN) 452 #endif // defined(OS_WIN)
457 453
458 } // namespace internal 454 } // namespace internal
459 } // namespace base 455 } // namespace base
460 456
461 #endif // BASE_FILES_FILE_UTIL_H_ 457 #endif // BASE_FILES_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | base/files/file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698