Thread: deletefile()?
View Single Post
  #5  
Old 04-20-2007, 08:37 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
HTML Code:
  for (temp.levelData: this.toDelete)
  {
    if ((timevar2 - temp.levelData[1]) >= temp.levelData[2])
    {
      temp.filePath = "world/gsanddungeon/";
      temp.levelList.loadFolder("levels/" @ temp.filePath @ "*", 0);
      for (temp.currentLevel: temp.levelList)
      {
        if (temp.currentLevel.substring(12, 1) == temp.levelData[0])
        {
          echo("Deleted Level:" SPC temp.currentLevel);
          deleteFile(temp.currentLevel);
        }
      }
        
      //v_dungeons-cz3.nw
      this.toDelete.delete(this.toDelete.indices(temp.levelData));  
    }
  }
Yes, I have a problem with this! It should be deleting files, although it doesn't.
Reply With Quote