Made file enumartion methods virtual.