| 64 | } |
| 65 | |
| 66 | size_t CacheDataLocalFile::fileSizeInBytes() const { |
| 67 | struct stat st; |
| 68 | |
| 69 | if(stat(this->filePath_.c_str(), &st) == 0) |
| 70 | return (st.st_size); |
| 71 | else |
| 72 | throw; |
| 73 | } |
| 74 | |
| 75 | size_t CacheDataLocalFile::sizeInBytes() const { |
| 76 | return size_in_bytes; |