8000 GitHub - rajibmitra/filestat: get the file stats · GitHub
[go: up one dir, main page]

Skip to content
rajibmitraPublic

About

get the file stats

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

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

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0