fixed filename with space problem

This commit is contained in:
Hodza Alban 2017-08-07 22:20:17 +02:00 committed by GitHub
parent 02f953228e
commit c9c4271d2f

View File

@ -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)