⚲
Proyecto
General
Perfil
Iniciar sesión
Inicio
Proyectos
Ayuda
Búsqueda
:
Servidores centros secundaria
Todos los proyectos
Servidores centros secundaria
Vistazo
Actividad
Planificación
Peticiones
Gantt
Calendario
Noticias
Documentos
Wiki
Archivos
Repositorio
Descargar (354 Bytes)
Estadísticas
| Revisión:
root
/
autoclone
/
trunk
/
Server
/
MyUtils.py
@ 33
Ver
Histórico
Anotar
import
hashlib
import
os
def
getMD5Hash
(
file
,
block_size
=
2
**
20
):
f
=
open
(
file
)
md5
=
hashlib
.
md5
()
while
True
:
data
=
f
.
read
(
block_size
)
if
not
data
:
break
md5
.
update
(
data
)
md5Hash
=
md5
.
hexdigest
()
return
md5Hash
def
getFileName
(
file
):
basename
=
os
.
path
.
basename
(
file
)
filename
=
os
.
path
.
splitext
(
basename
)
return
filename
[
0
]
« Anterior
1
2
3
4
Siguiente »
(1-1/4)
Cargando...