UNISTDX_FS_DIRECTORY

Directory entry input stream that ignores all hidden files during traversal and output stream that copies all files verbatim.

template <class FilePred, class Trans>
class sys::basic_directory

Directory entry input/output stream.

FilePred
file predicate type, that determines which directory entries to include in the stream.

Trans
transformation function type

Base classes
Types
  • using transform = Trans

    File name transformation function type.

  • using filepred_type = FilePred

    File predicate type.

Methods
  • operator!() const -> bool

    Returns true if input stream is not in good state.

  • operator bool() constexplicit

    Returns true if input stream is in good state.

  • getpath() const -> const path &

    Get input/output directory.

  • close() -> void

    Close input directory.

    See
    closedir(3)
  • open(const path & p) -> void

    Open directory p as an input directori for reading entries and set it as output directory.