Announcement

Collapse
No announcement yet.

Is it possible to delete a file with efs (which was created with efs)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is it possible to delete a file with efs (which was created with efs)

    Is it possible to delete a file using efs ?.

  • #2
    Hello Mike2,

    EFS is not allowed to delete files. If you create a file through EFS, you can overwrite that file with new data using the same file name.
    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment


    • #3
      Here's my workaround for not being able to delete files.

      I used another program to delete the file using,
      var f = new File("newVars");
      if(f.exists() && !fileRead) {
      fileRead = true;
      f.open("rt");
      newdataforvariable = f.readln();
      f.close();

      var f = new File("fileReadDone");
      f.open("wt");
      f.close();
      }
      When the other program sees "fileReadDone" it knows to delete the file. It only reads the file once i.e. when fileRead variable is false.
      When the other program sees "fileReadDone" it creates a new file. When eSignal sees the new file if confirms that it has also seen that.
      I also used,
      var f = new File("confirmFileRead");
      if(f.exists()) {
      fileRead = false;
      var f = new File("allEsigStepsDone");
      f.open("wt");
      f.close();
      The program then deletes all files when it sees "comfirFileRead".
      It's a bit cumbersome, and could be a bit neater, but it works, so that's the main thing.

      Comment

      Working...
      X