import os
import io
import sys

ar=str(sys.argv)
if len(sys.argv) != 2:
   print "Wrong number of parameters."
   print "Usage: "+sys.argv[0]+" path_to_backup path_to_cache"
   exit(0)


lstfile=sys.argv[1]
s=0
ssum=0
nfiles=0

lines = [line.rstrip() for line in open(lstfile)]
for filename in lines:
    if os.path.isfile(filename):
	   s=os.stat(filename).st_size
	   ssum+=s
	   nfiles+=1

filename= os.path.basename(lstfile)
print filename,':Nfiles - ',nfiles, ' - ',ssum/1024/1024/1024,' GB'

@@ -1,12 +1,31 @@
+#!/usr/bin/python%0A%0A
 import os%0Aim

fix file type