All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.astrainteractive.astralibs.filemanager.FileManager.kt Maven / Gradle / Ivy

There is a newer version: 3.14.1
Show newest version
package ru.astrainteractive.astralibs.filemanager

import java.io.File

/**
 * This class will help manage files
 * It will auto-create it inside [dataFolder] based on [name]
 */
interface FileManager {
    /**
     * Name of the file
     * Example: file.json; folder/nextfolder/file.json
     */
    val name: String

    /**
     * Path to data folder of the plugin
     */
    val dataFolder: File

    /**
     * Configuration file named [name] placed in [dataFolder]
     */
    val configFile: File

    /**
     * Delete [configFile]
     */
    fun delete()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy