parameters: (file_path, is_cksum)
return_statement: return size
docstring: Get the size of the cachefile.
docstring_summary: Get the size of the cachefile.
docstring_tokens: Get the size of the cachefile .
function: def get_cachefile_size(file_path, is_cksum):
      """Get the size of the cachefile."""
      if is_cksum:
          size = 0
          for cksum_path in os.listdir(file_path):
              cksum_path = os.path.join(file_path, cksum_path)
              size += os.stat(cksum_path).st_size
      else:
          size = os.stat(file_path).st_size
      return size
function_tokens: def get_cachefile_size ( file_path , is_cksum ) : if is_cksum : size = 0 for cksum_path in os . listdir ( file_path ) : cksum_path = os . path . join ( file_path , cksum_path ) size += os . stat ( cksum_path ) . st_size else : size = os . stat ( file_path ) . st_size return size