Import std.io.file
Metadata
struct
Public Struct Metadata
What's at a path, as File.Metadata found it: when it was last changed and read, and when it was made, which is Null where the OS or the disk doesn't say. IsReadOnly is whether its owner may not write it.
Examples
Local file = Try TempFile()
Try File.WriteText(file.Path, "four")
Local info = Try File.Metadata(file.Path)
Expect(info.IsFile() && info.Size == 4 && !info.IsReadOnly)
Try file.Close()-
Whether it's a file, a folder, or a link.
-
How many bytes it holds.
-
When it was last changed.
-
When it was last read.
-
When it was made, or Null where the OS or the disk doesn't say.
-
Whether its owner may not write it.
-
Whether it's a file.
-
Whether it's a folder.
-
Whether it's a link.
Report an issue with this page or with FutureBlitz on GitHub.