我正在使用 truezip 版本 (7.7.9) 来更新存档文件。我这样做的方式如下
File entry = new TFile(filepath);
writer = new TFileWriter(entry);
writer.append("MyString");
writer.flush();
long fileSize = entry.length(); // which always gives value as 0
我出于某种目的需要确切的文件大小但这总是给出 0 有没有其他方法可以得到它。
我阅读了 TFile 类的文档\ https://truezip.java.net/apidocs/de/schlichtherle/truezip/file/TFile.html#length() 不太明白它的作用