@@ -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
9999fn 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
106106fn 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
142142fn 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