Index: trunk/psModules/src/camera/pmFPAfileDefine.c
===================================================================
--- trunk/psModules/src/camera/pmFPAfileDefine.c	(revision 18043)
+++ trunk/psModules/src/camera/pmFPAfileDefine.c	(revision 18061)
@@ -457,5 +457,5 @@
 
     // this function is implicitly an INPUT operation: do not create the file
-    psString realName = pmConfigConvertFilename (infiles->data[0], config, false);
+    psString realName = pmConfigConvertFilename (infiles->data[0], config, false, false);
     if (!realName) {
         psError(PS_ERR_IO, false, "Failed to convert file name %s\n", (char *) infiles->data[0]);
@@ -538,5 +538,5 @@
         if (i > 0) {
             // this function is implicitly an INPUT operation: do not create the file
-            psString realName = pmConfigConvertFilename (infiles->data[i], config, false);
+            psString realName = pmConfigConvertFilename (infiles->data[i], config, false, false);
             if (!realName) {
                 psError(PS_ERR_IO, false, "Failed to convert file name %s", (char *) infiles->data[i]);
@@ -672,5 +672,5 @@
     for (int i = 0; i < infiles->n; i++) {
         // this function is implicitly an INPUT operation: do not create the file
-        psString realName = pmConfigConvertFilename (infiles->data[i], config, false);
+        psString realName = pmConfigConvertFilename (infiles->data[i], config, false, false);
         if (!realName) {
             psError(PS_ERR_IO, false, "Failed to convert file name %s", (char *) infiles->data[i]);
@@ -925,5 +925,5 @@
     // Prepend the global path to the file rule
     // this function is implicitly an INPUT operation: do not create the file
-    psString tmpName = pmConfigConvertFilename(file->filerule, config, false);
+    psString tmpName = pmConfigConvertFilename(file->filerule, config, false, false);
     psFree (file->filerule);
     file->filerule = tmpName;
Index: trunk/psModules/src/camera/pmFPAfileIO.c
===================================================================
--- trunk/psModules/src/camera/pmFPAfileIO.c	(revision 18043)
+++ trunk/psModules/src/camera/pmFPAfileIO.c	(revision 18061)
@@ -752,5 +752,5 @@
     // apply filename mangling rules (file://, path://, neb://)
     bool create = file->mode == PM_FPA_MODE_WRITE ? true : false;
-    psString tmpName = pmConfigConvertFilename (file->filename, config, create);
+    psString tmpName = pmConfigConvertFilename (file->filename, config, create, false);
     psFree (file->filename);
     file->filename = tmpName;
Index: trunk/psModules/src/config/pmConfig.c
===================================================================
--- trunk/psModules/src/config/pmConfig.c	(revision 18043)
+++ trunk/psModules/src/config/pmConfig.c	(revision 18061)
@@ -556,5 +556,5 @@
         }
         if (logDest) {
-            psString resolved = pmConfigConvertFilename(logDest, config, true); // Resolved filename
+            psString resolved = pmConfigConvertFilename(logDest, config, true, false); // Resolved filename
             if (!resolved || strlen(resolved) == 0) {
                 psWarning("Unable to resolve log destination: %s --- ignored", logDest);
@@ -614,5 +614,5 @@
         }
         if (traceDest) {
-            psString resolved = pmConfigConvertFilename(traceDest, config, true); // Resolved filename
+            psString resolved = pmConfigConvertFilename(traceDest, config, true, false); // Resolved filename
             if (!resolved || strlen(resolved) == 0) {
                 psWarning("Unable to resolve trace destination: %s --- ignored", traceDest);
@@ -1490,5 +1490,5 @@
 
 // convert the supplied name, create a new output psString
-psString pmConfigConvertFilename(const char *filename, const pmConfig *config, bool create)
+psString pmConfigConvertFilename(const char *filename, const pmConfig *config, bool create, bool truncate)
 {
     PS_ASSERT_STRING_NON_EMPTY(filename, NULL);
Index: trunk/psModules/src/config/pmConfig.h
===================================================================
--- trunk/psModules/src/config/pmConfig.h	(revision 18043)
+++ trunk/psModules/src/config/pmConfig.h	(revision 18061)
@@ -5,6 +5,6 @@
  *  @author Eugene Magnier, IfA
  *
- *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2008-06-09 00:38:42 $
+ *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2008-06-10 20:28:25 $
  *  Copyright 2005-2006 Institute for Astronomy, University of Hawaii
  */
@@ -163,5 +163,6 @@
     const char *filename,               ///< file path/URI
     const pmConfig *config,             ///< configuration
-    bool create                         ///< create the file if it doesn't exist
+    bool create,                        ///< create the file if it doesn't exist
+    bool truncate                       ///< truncate the file (if it exists)
 );
 
