Fixed a stupid bug where all of the files were deleted. Doh.