Add support for limits to Files.GetDirectory

Also removes an unneeded loop.