class::sys::Dir

class sys::Dir
  : public api::SysWorkObject

Todo: Add some examples

Methods

Details

publicDir()

Constructs a Dir object.


public~Dir()

public intclose()

Closes the directory.


public intcount()

Counts the total number of entries in the directory.


public inline char *data()

Returns a pointer (editable) to the name of the most recently read entry.


public inline DIR *dirp()

Returns the directory handle pointer.


public boolget_entry(var::String& path_dest)

Gets the next entry and writes the full path of the entry to the given string.

Parameters

  • path_dest The var::String that will hold the full path of the next entry.

Returns

True if an entry was read or false for an error or no more entries


publicvar::Stringget_entry()

public inline intino()

Returns the serial number of the most recently read entry.


public inline boolis_open() const

Returns a true if the directory is open.


public inline const char *name()

Returns a pointer (const) to the name of the most recently read entry.


public intopen(constvar::ConstString& name)

Opens a directory.


public const char *read()

Returns a pointer to the next entry or 0 if no more entries exist.


public`var::Vector< var::String`>read_list()

public inline voidrewind()

Rewinds the directory pointer.


public inline voidseek(long loc)

Seeks to a location in the directory.


public inline longtell()

Returns the current pointer location in the directory.


X

Thanks for Coming!

Subscribe to news and updates