Import std.io.dir
DirEntry
struct
Public Struct DirEntry
Something in a folder: where it is, where it is from the folder that was listed, which for Entries is its name, and what it is.
Examples
Local folder = Try TempDir()
Try File.WriteText(folder.Path / "a.txt", "")
Local entry = (Try Dir.Entries(folder.Path))[0]
Expect(entry.Name() == "a.txt" && entry.IsFile() && !entry.IsDirectory())
Try folder.Close()-
Where it is.
-
Where it is from the folder that was listed, which for Entries is its name.
-
Whether it's a file, a folder, or a link.
-
Its own name, the last in its path.
-
Whether it's a file.
-
Whether it's a folder.
Report an issue with this page or with FutureBlitz on GitHub.