migrated draft TemporaryFile code from FileUtils to new TemporaryFile module (in FileSystem)