Use mem-fs in legacy file methods