Skip to content

Commit

Permalink
added file link operations
Browse files Browse the repository at this point in the history
  • Loading branch information
juerg committed Jan 11, 2024
1 parent 0a73244 commit 5b60de3
Show file tree
Hide file tree
Showing 2 changed files with 299 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,60 +53,75 @@ public DocSection section() {
file.addItem(diBuilder.getDocItem("io/file-size", false));
file.addItem(diBuilder.getDocItem("io/file-last-modified", false));

final DocSection file_dir = new DocSection("file dir", "io.filedir");
final DocSection file_dir = new DocSection("dir", "io.filedir");
all.addSection(file_dir);
file_dir.addItem(diBuilder.getDocItem("io/mkdir", false));
file_dir.addItem(diBuilder.getDocItem("io/mkdirs", false));

final DocSection file_io = new DocSection("file i/o", "io.fileio");
final DocSection file_io = new DocSection("slurp/spit", "io.fileio");
all.addSection(file_io);
file_io.addItem(diBuilder.getDocItem("io/slurp"));
file_io.addItem(diBuilder.getDocItem("io/slurp-lines"));
file_io.addItem(diBuilder.getDocItem("io/spit"));

final DocSection file_list = new DocSection("file list", "io.filelist");
final DocSection file_list = new DocSection("list", "io.filelist");
all.addSection(file_list);
file_list.addItem(diBuilder.getDocItem("io/list-files", false));
file_list.addItem(diBuilder.getDocItem("io/list-files-glob", false));
file_list.addItem(diBuilder.getDocItem("io/list-file-tree", false));
file_list.addItem(diBuilder.getDocItem("io/list-file-tree-lazy", false));

final DocSection file_del = new DocSection("file delete", "io.filedelete");
final DocSection file_del = new DocSection("delete", "io.filedelete");
all.addSection(file_del);
file_del.addItem(diBuilder.getDocItem("io/delete-file", false));
file_del.addItem(diBuilder.getDocItem("io/delete-files-glob", false));
file_del.addItem(diBuilder.getDocItem("io/delete-file-tree", false));
file_del.addItem(diBuilder.getDocItem("io/delete-file-on-exit", false));

final DocSection file_cpy = new DocSection("file copy", "io.filecopy");
final DocSection file_cpy = new DocSection("copy", "io.filecopy");
all.addSection(file_cpy);
file_cpy.addItem(diBuilder.getDocItem("io/copy-file", false));
file_cpy.addItem(diBuilder.getDocItem("io/copy-files-glob", false));
file_cpy.addItem(diBuilder.getDocItem("io/copy-file-tree", false));

final DocSection file_mov = new DocSection("file move", "io.filemove");
final DocSection file_mov = new DocSection("move", "io.filemove");
all.addSection(file_mov);
file_mov.addItem(diBuilder.getDocItem("io/move-file", false));
file_mov.addItem(diBuilder.getDocItem("io/move-files-glob", false));

final DocSection file_touch = new DocSection("file touch", "io.filetouch");
final DocSection file_touch = new DocSection("touch", "io.filetouch");
all.addSection(file_touch);
file_touch.addItem(diBuilder.getDocItem("io/touch-file"));

final DocSection file_test = new DocSection("file test", "io.filetest");
final DocSection file_perm = new DocSection("permissions", "io.filepermissions");
all.addSection(file_perm);
file_perm.addItem(diBuilder.getDocItem("io/file-can-read?", false));
file_perm.addItem(diBuilder.getDocItem("io/file-can-write?", false));
file_perm.addItem(diBuilder.getDocItem("io/file-can-execute?", false));
file_perm.addItem(diBuilder.getDocItem("io/file-set-readable", false));
file_perm.addItem(diBuilder.getDocItem("io/file-set-writable", false));
file_perm.addItem(diBuilder.getDocItem("io/file-set-executable", false));

final DocSection file_link = new DocSection("links", "io.filelinks");
all.addSection(file_link);
file_link.addItem(diBuilder.getDocItem("io/file-symbolic-link?", false));
file_link.addItem(diBuilder.getDocItem("io/file-create-symbolic-link", false));
file_link.addItem(diBuilder.getDocItem("io/file-create-hard-link", false));

final DocSection file_test = new DocSection("test", "io.filetest");
all.addSection(file_test);
file_test.addItem(diBuilder.getDocItem("io/file?"));
file_test.addItem(diBuilder.getDocItem("io/file-absolute?"));
file_test.addItem(diBuilder.getDocItem("io/exists-file?"));
file_test.addItem(diBuilder.getDocItem("io/exists-dir?"));
file_test.addItem(diBuilder.getDocItem("io/file-can-read?", false));
file_test.addItem(diBuilder.getDocItem("io/file-can-write?", false));
file_test.addItem(diBuilder.getDocItem("io/file-can-execute?", false));
file_perm.addItem(diBuilder.getDocItem("io/file-can-read?", false));
file_perm.addItem(diBuilder.getDocItem("io/file-can-write?", false));
file_perm.addItem(diBuilder.getDocItem("io/file-can-execute?", false));
file_test.addItem(diBuilder.getDocItem("io/file-hidden?", false));
file_test.addItem(diBuilder.getDocItem("io/file-symbolic-link?", false));
file_test.addItem(diBuilder.getDocItem("io/file-within-dir?"));

final DocSection file_glob = new DocSection("file glob", "io.fileglob");
final DocSection file_glob = new DocSection("glob", "io.fileglob");
all.addSection(file_glob);
file_glob.addItem(diBuilder.getDocItem("io/glob-path-matcher", false));
file_glob.addItem(diBuilder.getDocItem("io/file-matches-glob?"));
Expand All @@ -131,13 +146,13 @@ public DocSection section() {
file_watch.addItem(diBuilder.getDocItem("io/watch-dir", false));
file_watch.addItem(diBuilder.getDocItem("io/close-watcher", false));

final DocSection file_tmp = new DocSection("file tmp", "io.filetmp");
final DocSection file_tmp = new DocSection("temporary", "io.filetmp");
all.addSection(file_tmp);
file_tmp.addItem(diBuilder.getDocItem("io/temp-file"));
file_tmp.addItem(diBuilder.getDocItem("io/temp-dir"));
file_tmp.addItem(diBuilder.getDocItem("io/tmp-dir"));

final DocSection file_other = new DocSection("file user", "io.fileuser");
final DocSection file_other = new DocSection("user dir", "io.fileuser");
all.addSection(file_other);
file_other.addItem(diBuilder.getDocItem("io/user-dir"));
file_other.addItem(diBuilder.getDocItem("io/user-home-dir"));
Expand Down
Loading

0 comments on commit 5b60de3

Please sign in to comment.