# derive **Repository Path**: IllTamer_Gitee/derive ## Basic Information - **Project Name**: derive - **Description**: Derive is a special toolkit, you can use it to monitor file directories, or you can easily edit yaml files. It's like a freewheeling trip. - **Primary Language**: Java - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-06-20 - **Last Updated**: 2022-08-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # derive ### Introduction Derive is a special toolkit, you can use it to monitor file directories, or you can easily edit yaml files. It's like a freewheeling trip. ### Usage #### File System You can use `Resource.instance()` to get an instance of `Resource`, then see `Path` for more information. ```java public class FileSystemDemo { public static void main(String[]args) throws Exception { // create a root path Path root = Resource.instance().root("root"); // get all paths of first level for (Path path : root.list()) { System.out.println(path.getRelativePath()); // get the file's input stream Path current = Resource.getPath(root, relativePath); current.getInputStream(); } } } ``` #### YAML Configuration Thanks for `Bukkit`, you can edit yaml file easily with `YamlConfiguration`. Get more information from `ConfigurationSection`.