static long getFileSize(S path) {
  ret path == null ? 0 : new File(path).length();
}

static long getFileSize(File f) {
  ret f == null ? 0 : f.length();
}