def CheckFreeSpace():
 if (cfg.download_free() and (not sabnzbd.downloader.Downloader.do.paused)):
  if (misc.diskfree(cfg.download_dir.get_path()) < (cfg.download_free.get_float() / GIGI)):
   logging.warning(T('Too little diskspace forcing PAUSE'))
   Downloader.do.pause(save=False)
   emailer.diskfull()

def CheckFreeSpace ( ) : if ( cfg . download_free ( ) and ( not sabnzbd . downloader . Downloader . do . paused ) ) : if ( misc . diskfree ( cfg . download_dir . get_path ( ) ) < ( cfg . download_free . get_float ( ) / GIGI ) ) : logging . warning ( T ( 'Too little diskspace forcing PAUSE' ) ) Downloader . do . pause ( save = False ) emailer . diskfull ( )
check if enough disk space is free .