Skip to content
FutureBlitz

    Install

    Import std.io.vfs

    FolderSource

    std.io.vfs

    class

    Public Final Class FolderSource Implements VfsSource

    A folder on the disk as a source, which reads it as it's asked, so it sees what changes in it. Nothing outside the folder is in it: by Windows' rules, a name with a ':' in it, which would be a drive or a file's stream, isn't there. Its root is a folder, empty while the folder isn't there or is a file. It's Final, so a Vfs's Async reads of it read what its Read does; a source that changes what a folder's files read as wraps one.

    std/io/vfs.fb, line 49

    • Public ReadOnly Field Folder: Path field #

      The folder on the disk it reads.

    • Public New(folder: Path) constructor #

      A FolderSource of folder.

    • Public Method Read(path: String): UInt8[]? Throws IOError method #

      The bytes of the file at path in the folder, or Null when there's no file there. Throws the IOError reading it does for another reason.

    • Public Method KindAt(path: String): FileKind? Throws IOError method #

      Whether path in the folder is a file or a folder, or Null when nothing is there.

    • Public Method List(path: String): (String, FileKind)[]? Throws IOError method #

      The names of what's in the folder at path in the folder, each with whether it's a file or a folder, or Null when there's no folder there.

    Report an issue with this page or with FutureBlitz on GitHub.