To prevent errors while writing files from destroying existing files, yEd first creates a temporary file and then asks the operating system to either rename the file or replace an already existing file if there is one. If the the temporary file still exists, the rename/replace did not work for some reason. However, this should usually result in an error message.