public static void cleanupOldPreSaveFiles(File dir, long beforeNow) {
		File[] oldFiles = dir.listFiles(new BufferFileFilter(null, PRESAVE_FILE_EXT));
		if (oldFiles == null) {
			return;
		}
		for (File oldFile : oldFiles) {
			if ((beforeNow == 0 || oldFile.lastModified() < beforeNow) && oldFile.delete()) {
				Msg.info(LocalBufferFile.class, "Removed old presave file: " + oldFile);
			}
		}
	}
Attempt to remove all pre-save files.
Those still open by an existing process should
not be removed by the operating system.
@param dir data directory containing pre-save files
@param beforeNow if not 0, file mod time must be less than the specified time
Ghidra/Framework/DB/src/main/java/db/buffers/LocalBufferFile.java