+ if ( pzPath == NULL) return false;
+
+ DIR *pDir;
+ bool bExists = false;
+
+ pDir = opendir (pzPath);
+
+ if (pDir != NULL)
+ {
+ bExists = true;
+ (void) closedir (pDir);
+ }
+
+ return bExists;
+}
+
+string writeout::tstamp(const long& timestamp)
+{
+ stringstream sstr;
+ if(!timestamp) sstr << time (NULL);
+ else sstr << timestamp;
+ return sstr.str();