Name

SPVM::Sys::IO::DirStream - DIR structure in the C language.

Description

Sys::IO::DirStream class in SPVM represents the DIR structure in the C language.

Usage

use Sys::IO::DirStream;
use Sys::IO;

my $dir = "foo";

# Sys::IO::DirStream
my $dir_stream = Sys::IO->opendir($dir);

Details

This class is a pointer class. The pointer is set to an object of DIR type in the C language.

Fields

closed

has closed : ro byte;

The flag whether the directory stream is closed.

If this field is a true value, the directory stream is closed, otherwise opened.

Instance Methods

method DESTROY : void ();

The destructor.

If "closed" field is not a true value, closes the directory handle stored in the pointer.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License