---------------------------------------------------------------------
| 276 | } |
| 277 | //--------------------------------------------------------------------- |
| 278 | time_t ZipArchive::getModifiedTime( const String &filename ) |
| 279 | { |
| 280 | // Zziplib doesn't yet support getting the modification time of individual files |
| 281 | // so just check the mod time of the zip itself |
| 282 | struct stat tagStat; |
| 283 | bool ret = ( stat( mName.c_str(), &tagStat ) == 0 ); |
| 284 | |
| 285 | if( ret ) |
| 286 | { |
| 287 | return tagStat.st_mtime; |
| 288 | } |
| 289 | else |
| 290 | { |
| 291 | return 0; |
| 292 | } |
| 293 | } |
| 294 | //----------------------------------------------------------------------- |
| 295 | void ZipArchive::checkZzipError( int zzipError, const String &operation ) const |
| 296 | { |
no test coverage detected