parameters: (directory)
docstring: remove all files that have size 0 from a directory
docstring_summary: remove all files that have size 0 from a directory
docstring_tokens: remove all files that have size 0 from a directory
function: def removeEmpty(directory) :
      '''remove all files that have size 0 from a directory'''
      
      f = os.popen3("ls -l " + directory)
      lines = f[1].readlines()
  
      for line in lines[1:] :
          if int(line.split()[4]) == 0 :
              fileName = line.split()[-1]
              print 'removing ',fileName
              os.remove(os.path.join(directory, fileName))
function_tokens: def removeEmpty ( directory ) : f = os . popen3 ( "ls -l " + directory ) lines = f [ 1 ] . readlines ( ) for line in lines [ 1 : ] : if int ( line . split ( ) [ 4 ] ) == 0 : fileName = line . split ( ) [ - 1 ] print 'removing ' , fileName os . remove ( os . path . join ( directory , fileName ) )