[Bbs2ch-cvs 162] CVS update: bbs2chreader/content/bbs2chreader/server

Back to archive index

flyson flyso****@users*****
2006年 12月 9日 (土) 04:38:22 JST


Index: bbs2chreader/content/bbs2chreader/server/thread.js
diff -u bbs2chreader/content/bbs2chreader/server/thread.js:1.1.2.2 bbs2chreader/content/bbs2chreader/server/thread.js:1.1.2.3
--- bbs2chreader/content/bbs2chreader/server/thread.js:1.1.2.2	Tue Dec  5 01:03:49 2006
+++ bbs2chreader/content/bbs2chreader/server/thread.js	Sat Dec  9 04:38:21 2006
@@ -45,6 +45,11 @@
 			return;
 		}
 
+			// DAT ‚ª–³‚­ IDX ƒtƒ@ƒCƒ‹‚Ì‚Ý‘¶Ý‚·‚éê‡‚́Aƒ‰ƒCƒ“”‚ª‚¸‚ê‚Ä‚µ‚Ü‚¤‚Ì‚Å IDX ‚ðÁ‚·
+		if(!this.dat.datFile.exists() && this.dat.idxFile.exists()){
+			this.dat.remove();
+		}
+
 		if(this.dat.type != this._bbs2chService.BOARD_TYPE_2CH){
 			this.write("Not Supported");
 			this.close();
@@ -509,7 +514,16 @@
 		this._bbs2chService.writeFile(this.datFile.path, aContent, true);
 	},
 
-	remove: function(){}
+	remove: function(){
+		try{
+			if(this.datFile.exists()) this.datFile.remove(false);
+			if(this.idxFile.exists()) this.idxFile.remove(false);
+
+			this._title = "";
+			this._lineCount = 0;
+			this._lastModified = "";
+		}catch(ex){}
+	}
 };
 
 


bbs2ch-cvs メーリングリストの案内
Back to archive index