+static bool local_file_exists( const string& path ) {
+ fg_gzifstream in( path );
+ if ( ! in.is_open() ) {
+ return false;
+ } else {
+ return true;
+ }
+
+#if 0
+ cout << path << " ";
+ FILE *fp = fopen( path.c_str(), "r" );
+ if ( fp == NULL ) {
+ cout << " doesn't exist\n";
+ return false;
+ } else {
+ cout << " exists\n";
+ return true;
+ }
+#endif
+}
+
+