Skip to content

rajibmitra/filestat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

filestat

a library that has basically two func

func AddFile(metadata FileMetadata) error

The function receives a structure containing the metadata of one file. This file should be taken into account when calculating statistics. The function can return an error if the input is invalid or processing of the file fails.

func GetStats() FileStats

This function returns statistics for all files added until that point. The following statistics should be returned:

  1. Number of files received
  2. Largest file received (including name and size)
  3. Average file size
  4. Most frequent file extension (including number of occurences)
  5. Percentage of text files of all files received
  6. List of latest 10 file paths received

About

get the file stats

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published