From 9d7395a61c6a6b8c9ba4a9ab3b3b156e9c6dda36 Mon Sep 17 00:00:00 2001 From: eblade Date: Wed, 11 Mar 2009 23:10:31 -0400 Subject: [PATCH] unbreak psuedo-recursion --- pyfpdb/fpdb_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/fpdb_import.py b/pyfpdb/fpdb_import.py index d86c4214..54b48dee 100644 --- a/pyfpdb/fpdb_import.py +++ b/pyfpdb/fpdb_import.py @@ -200,7 +200,7 @@ class Importer: self.updated[file] = time() # If modified in the last minute run an immediate import. # This codepath only runs first time the file is found. - if (time() - stat_info.st_mtime) < 60: + if os.path.isdir(file) or (time() - stat_info.st_mtime) < 60: # TODO attach a HHC thread to the file # TODO import the output of the HHC thread -- this needs to wait for the HHC to block? self.import_file_dict(file, self.filelist[file][0], self.filelist[file][1])