JavaScriptJS

模组

· 作者 yiran1457

允许 KubeJS 写入 JS 文件

0 本站下载 0 关注 更新于 1 年前

需要前置:KubeJS

最新 2001-1.0.1 · 1.20.6 · Forge

一键开服(送7天)

中文

向 KubeJS 的 JsonIO 添加了以下内容:

  • writeAndCreateDirectories - 在写入 JSON 文件时创建父级目录
  • findJsonInDirectory - 可用于查找目录中所有 JSON 文件的路径

添加了 JSIO:

  • getAllowSuffix - 检查操作允许的文件后缀
  • read - 读取文件并返回 List<String>
  • exists - 检查文件是否存在
  • write - 写入文件并创建父级目录
  • delete - 删除文件
  • findJSInDirectory - 可用于查找目录中所有 JS 文件的路径

Chinese

Added to KubeJS's JsonIO:

  • writeAndCreateDirectories - Creates the parent directory when writing a JSON file.
  • findJsonInDirectory - Finds the paths of all JSON files within a specified directory.

Added JSIO:

  • getAllowSuffix - Retrieves the allowed file extensions for operations.
  • read - Reads a file and returns a List<String>.
  • exists - Checks whether a file exists.
  • write - Writes to a file and creates its parent directory if it doesn't exist.
  • delete - Deletes a file.
  • findJSInDirectory - Finds the paths of all JS files within a specified directory.

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源