fileIsCached static method

  1. @visibleForTesting
bool fileIsCached(
  1. File file
)

Verifies if file is stored on cache

Implementation

@visibleForTesting
static bool fileIsCached(File file) {
  if (file.existsSync() && file.lengthSync() > 0) {
    return true;
  }
  return false;
}