kinderp/beer2beer

Browse files in sharing directory

Ouverte

#13 ouverte le 23 févr. 2023

 (0 commentaire) (0 réaction) (3 personnes assignées)Python (0 fork)auto 404
good first issuepeer

Métriques du dépôt

Stars
 (0 étoile)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

We need a new class Util in module util.py in order to host a ner function that will browse all shared files in ShellSettings.DIRECTORY

This function must return a list of dictionaries.

Each dict is composed in this way:

{
  "filename": "bla_bla_bla.mp3",
  "dimension": 3,
  "sha1": "...."
}
  • filename is just the name of current file
  • dimension must be showed in MB
  • sha1 is sha1of the current file

This list will be used in register call as part of its payload.

Guide contributeur