fixed filename with space problem
Este commit está contenido en:
padre
02f953228e
commit
c9c4271d2f
@ -9,7 +9,7 @@ from time import strftime, strptime
|
|||||||
def check_dimension(f):
|
def check_dimension(f):
|
||||||
""" If f is larger than 50MB it divides it into files up to 45MB """
|
""" If f is larger than 50MB it divides it into files up to 45MB """
|
||||||
if os.path.getsize(f) > 50 * 1024 * 1023:
|
if os.path.getsize(f) > 50 * 1024 * 1023:
|
||||||
os.system("split -b 45MB {0} {1}".format(f, f))
|
os.system('split -b 49MB "{0}" "{1}"'.format(f, f))
|
||||||
os.remove(f)
|
os.remove(f)
|
||||||
|
|
||||||
|
|
||||||
|
Cargando…
Referencia en una nueva incidencia
Block a user