index: Compare with given len
index: Implement folder-file checks