diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-12-05 19:09:34 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:29:37 +0300 |
commit | 1b74903e669c43af4d1f41928af8c7613122c852 (patch) | |
tree | 7f51519c7575d2d25d33b61a5c9bb24ed4ea855d /platform/platform_linux.cpp | |
parent | 272a6f84e80c4f0fa0d0688dbc321c0cce6f7c2b (diff) |
- Split Platform::GetFileSize() to GetFileSizeByName() and GetFileSizeByFullPath()
- Fixed country downloading for Android
- Improved unit tests for chunks downloader
Diffstat (limited to 'platform/platform_linux.cpp')
-rw-r--r-- | platform/platform_linux.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/platform_linux.cpp b/platform/platform_linux.cpp index 4de81fe05a..54f21a49a9 100644 --- a/platform/platform_linux.cpp +++ b/platform/platform_linux.cpp @@ -50,10 +50,10 @@ Platform::~Platform() { } -bool Platform::IsFileExists(string const & file) const +bool Platform::IsFileExistsByFullPath(string const & filePath) { struct stat s; - return stat(file.c_str(), &s) == 0; + return stat(filePath.c_str(), &s) == 0; } int Platform::CpuCores() const |