Skip to content

Commit 0291bd4

Browse files
authored
Update directory.jule
1 parent 26cc2c2 commit 0291bd4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/directory.jule

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ fn writeLine(text: str) {
3333

3434
// Subdirectories comes first and ordered by the strings::Compare function.
3535
// Implementation files comes after subdirectories and ordered by the strings::Compare function.
36-
fn sortDirents(mut &dirents: []os::Dir) {
37-
slices::SortFunc(dirents, fn(a: os::Dir, b: os::Dir): int {
36+
fn sortDirents(mut &dirents: []os::DirEntry) {
37+
slices::SortFunc(dirents, fn(a: os::DirEntry, b: os::DirEntry): int {
3838
if a.Stat.IsDir() && !b.Stat.IsDir() {
3939
ret -1
4040
}
@@ -98,13 +98,13 @@ fn isIgnorePath(path: str): bool {
9898

9999
fn createDirectoryMd() {
100100
const MdPath = "./DIRECTORY.md"
101-
os::File.Write(MdPath, unsafe { Table.Buf() }, 0o660) else {
101+
os::WriteFile(MdPath, unsafe { Table.Buf() }, 0o660) else {
102102
workflowFailed("a problem occurs when creating " + MdPath)
103103
}
104104
}
105105

106106
fn walkPackage(package: str, path: str, indent: int) {
107-
let mut dirents = os::Dir.Read(path) else {
107+
let mut dirents = os::ReadDir(path) else {
108108
workflowFailed("directory did not readed")
109109
ret // Avoid error.
110110
}
@@ -141,7 +141,7 @@ fn walkPackage(package: str, path: str, indent: int) {
141141

142142
fn main() {
143143
writeLine("# Table of Contents")
144-
let mut dirents = os::Dir.Read(".") else {
144+
let mut dirents = os::ReadDir(".") else {
145145
workflowFailed("directory did not readed")
146146
ret // Avoid error.
147147
}

0 commit comments

Comments
 (0)