public AbstractFile[] copyFiles() {
        this.readLock.lock();
        try {
            return this.files.toArray(new AbstractFile[] {});
        } finally {
            this.readLock.unlock();
        }
    }
Check file's correctness of name and length
@return mmap file
jraft-extension/java-log-storage-impl/src/main/java/com/alipay/sofa/jraft/storage/file/FileManager.java