backup フォルダ(ディレクトリ)が存在するとログコンバーターの処理が進まない

Bug #250886 reported by TN ex
2
Affects Status Importance Assigned to Milestone
bbs2chreader
Fix Committed
High
Unassigned

Bug Description

http://jbbs.livedoor.jp/bbs/read.cgi/computer/41231/1214224487/36
で報告されていた件と同じ内容かと思います。
backup フォルダ(ディレクトリ)が存在すると、"バックアップフォルダを作成中..."から処理が進みません。
修正方法がいまいちですが、添付のパッチで問題が解消することを確認済みです。

参考
http://piro.sakura.ne.jp/latest/blosxom/mozilla/xul/2007-06-05_relative.htm

Revision history for this message
TN ex (tn-ex) wrote :
Revision history for this message
Nazo (lovesyao) wrote :

Linuxではうまく動作していたので気づきませんでした。多分パス区切りが*nix依存なのが問題ですね。

>+ while(backupdir.exists()){
>+ backupdir = b2rService.io.getDataDir();
>+ backupdir.appendRelativePath("backup-" + n++);
>+ }

動くか試していませんが、 backupdir = backupdir.parent.clone().appendRelativePath("backup-" + n++); の方がいいような。

Revision history for this message
Nazo (lovesyao) wrote :

あ、すいません、appendRelativePath使うためにQueryInterfaceでnsILocalFileにする必要があるの忘れていました。

Revision history for this message
Nazo (lovesyao) wrote :

rev.587で修正

Changed in bbs2ch:
importance: Undecided → High
milestone: none → 0.5
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.