def apache_error_log_file(self): return var_dir() + "/crawl-apache_error_log.log"
def save_stats(self): if not os.path.exists(var_dir()): os.makedirs(var_dir()) file(self.stats_file()+".tmp", "w").write(pprint.pformat(self.stats) + "\n") os.rename(self.stats_file()+".tmp", self.stats_file())
def web_log_file(self): return var_dir() + "/crawl-web.log"
def report_file(self): return var_dir() + "/crawl.report"
def stats_file(self): return var_dir() + "/crawl.stats"