File path generation from contents of files