Package be.dezijwegel.betteryaml.files
Class TempFileCopier
java.lang.Object
be.dezijwegel.betteryaml.files.TempFileCopier
public class TempFileCopier extends Object
-
Constructor Summary
Constructors Constructor Description TempFileCopier(@NotNull org.bukkit.plugin.Plugin plugin, String resourcePath, String fileName, String path)Copy the specified file to a relative location of the plugins config folder Provide an empty string if you want to copy to /plugins/YOURPLUGIN/fileName fileName will be equal to the one provided in the constructor -
Method Summary
Modifier and Type Method Description voiddeleteCopiedFile()Delete the copied file
-
Constructor Details
-
TempFileCopier
public TempFileCopier(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, String resourcePath, String fileName, String path) throws IOExceptionCopy the specified file to a relative location of the plugins config folder Provide an empty string if you want to copy to /plugins/YOURPLUGIN/fileName fileName will be equal to the one provided in the constructor- Parameters:
plugin- the plugin for which we want to copy a fileresourcePath- the path in the resources folder, must and end with a slash. Eg. somefolder/ OR can be an empty StringfileName- the name of the file in this folderpath- the path that specifies the folder to copy to. MUST end with a forward slash, but none in front eg. subfolder/- Throws:
IOException
-
-
Method Details
-
deleteCopiedFile
public void deleteCopiedFile()Delete the copied file
-