2/25/2023 0 Comments Fileutility![]() With Geneious the temporary file will be deleted on the next start up of Geneious. If the machine or Geneious terminates before the code deletes the temporary file, with File.createTempFile the temporary file may never get deleted.It is preferable to use this method rather than File.createTempFile(String, String, java.io.File) because If Geneious is not running when this method is invoked, the standard system temporary directory is used. Which will have its contents deleted when Geneious is next started. If Geneious is running when this method is invoked, Geneious will supply a temporary directory in the user's data directory progressListener)Ĭreates a temporary file as specified by File.createTempFile(String, String, java.io.File). copyDirectory public static void copyDirectory(java.io.File sourceDirectory,.Throws: java.io.IOException - if the file cannot be copied for any reason. Must not be null, but may be ProgressListener.EMPTY. If the copy is cancelled, any partially written destination file will be removed. ![]() Skip (silently keep the destination file), overwrite (silently copy anyway, overwriting theĭestination file) progressListener - a progress listener to notify about progress during the copy and also provide the ability to cancel the copy. Parameters: sourceFile - the file to copy the contents from destinationFile - the file to copy the contents to targetExistsAction - action to take when the destination file already exists: Fail (throw an IOException), ![]() Will be erased if targetExistsAction = Overwrite. Note that in this case, a previously existing destinationFile If canceled in the middle of the copy (so that the destination file is partially written), theĭestination file will be deleted. Copies the contents of a file to another file ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |