Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
TrueZipのドキュメントによると、length()メソッドは0または-1を返すようです。WARアーカイブを更新していますが、長さが変更されたファイルのみを更新したいと思います。これはどのように達成できますか?
length()
前もって感謝します、
マーティン
まず、メソッドTFile.umount()を呼び出して変更をコミットします。
TFile.umount()
次に、次のメソッドを使用して、アーカイブ ファイルを検出しない TFile を取得し、その length() メソッドを呼び出します。
private static TFile newNonArchiveFile(TFile file) { return new TFile(file.getParentFile(), file.getName(), TArchiveDetector.NULL); }