@@ -33,8 +33,8 @@ fn writeLine(text: str) {
33
33
34
34
// Subdirectories comes first and ordered by the strings::Compare function.
35
35
// 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 {
38
38
if a.Stat.IsDir() && !b.Stat.IsDir() {
39
39
ret -1
40
40
}
@@ -98,13 +98,13 @@ fn isIgnorePath(path: str): bool {
98
98
99
99
fn createDirectoryMd() {
100
100
const MdPath = "./DIRECTORY.md"
101
- os::File.Write (MdPath, unsafe { Table.Buf() }, 0o660) else {
101
+ os::WriteFile (MdPath, unsafe { Table.Buf() }, 0o660) else {
102
102
workflowFailed("a problem occurs when creating " + MdPath)
103
103
}
104
104
}
105
105
106
106
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 {
108
108
workflowFailed("directory did not readed")
109
109
ret // Avoid error.
110
110
}
@@ -141,7 +141,7 @@ fn walkPackage(package: str, path: str, indent: int) {
141
141
142
142
fn main() {
143
143
writeLine("# Table of Contents")
144
- let mut dirents = os::Dir.Read (".") else {
144
+ let mut dirents = os::ReadDir (".") else {
145
145
workflowFailed("directory did not readed")
146
146
ret // Avoid error.
147
147
}
0 commit comments