From 1b74903e669c43af4d1f41928af8c7613122c852 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Mon, 5 Dec 2011 18:09:34 +0300 Subject: - Split Platform::GetFileSize() to GetFileSizeByName() and GetFileSizeByFullPath() - Fixed country downloading for Android - Improved unit tests for chunks downloader --- platform/platform_linux.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/platform_linux.cpp') 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 -- cgit v1.2.3