Add lost password recovery
This commit is contained in:
12
tools/filesutils.py
Normal file
12
tools/filesutils.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import os
|
||||
from math import floor
|
||||
|
||||
def getFileSizeMo(filename): # Prend un nom de fichier en arguments renvoie la taille en Mo
|
||||
tmp = os.path.getsize(filename)
|
||||
size = floor (tmp / 1024) / 1000
|
||||
return size
|
||||
|
||||
def getFileSizeKo(filename): # Prend un nom de fichier en arguments renvoie la taille en Mo
|
||||
tmp = os.path.getsize(filename)
|
||||
size = floor(tmp / 1024)
|
||||
return size
|
||||
Reference in New Issue
Block a user