首先,调用方法
TFile.umount()以提交所有更改。
然后使用以下方法获取未检测到存档文件的TFile并调用其length()方法:
private static TFile newNonArchiveFile(TFile file) { return new TFile(file.getParentFile(), file.getName(), TArchiveDetector.NULL);}
首先,调用方法
TFile.umount()以提交所有更改。
然后使用以下方法获取未检测到存档文件的TFile并调用其length()方法:
private static TFile newNonArchiveFile(TFile file) { return new TFile(file.getParentFile(), file.getName(), TArchiveDetector.NULL);}