mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-13 14:50:43 +08:00
Add PluginFileExtensions.dataFolder
This commit is contained in:
parent
82f1f5bed5
commit
a8b5299ba8
@ -87,4 +87,9 @@ public interface PluginFileExtensions {
|
|||||||
*/
|
*/
|
||||||
@JvmDefault
|
@JvmDefault
|
||||||
public fun resolveDataPath(relativePath: Path): Path = dataFolderPath.resolve(relativePath)
|
public fun resolveDataPath(relativePath: Path): Path = dataFolderPath.resolve(relativePath)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return `dataFolderPath.toFile()`
|
||||||
|
*/
|
||||||
|
public val PluginFileExtensions.dataFolder: File get() = dataFolderPath.toFile()
|
Loading…
Reference in New Issue
Block a user