diff options
author | gspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-30 00:43:37 +0000 |
---|---|---|
committer | gspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-30 00:43:37 +0000 |
commit | 2e733d10715fe3fd5bffd60e345f5999ae225000 (patch) | |
tree | 9839ff0aaf6f481d530c91df41f6358333ad0db9 /base/platform_file_posix.cc | |
parent | efe3ddc3dde5349e50a96bd445a0d6569215a139 (diff) | |
download | chromium_src-2e733d10715fe3fd5bffd60e345f5999ae225000.zip chromium_src-2e733d10715fe3fd5bffd60e345f5999ae225000.tar.gz chromium_src-2e733d10715fe3fd5bffd60e345f5999ae225000.tar.bz2 |
Some additions to support symlinks better on platforms that support them.
BUG=none
TEST=Ran new unit test, passed trybots.
Review URL: http://codereview.chromium.org/5349007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67631 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/platform_file_posix.cc')
-rw-r--r-- | base/platform_file_posix.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/base/platform_file_posix.cc b/base/platform_file_posix.cc index 52b14fc..38989c6 100644 --- a/base/platform_file_posix.cc +++ b/base/platform_file_posix.cc @@ -187,6 +187,7 @@ bool GetPlatformFileInfo(PlatformFile file, PlatformFileInfo* info) { return false; info->is_directory = S_ISDIR(file_info.st_mode); + info->is_symbolic_link = S_ISLNK(file_info.st_mode); info->size = file_info.st_size; info->last_modified = base::Time::FromTimeT(file_info.st_mtime); info->last_accessed = base::Time::FromTimeT(file_info.st_atime); |