nn::fs::Directory

nn::fs::Directory Class

Syntax

class Directory : 
    private nn::util::NonCopyable< Directory >,
    private nn::fs::detail::DirectoryBase

Description

A class used for directory operations.

The directory with the specified path name can be opened and entries can be loaded from it. You can also specify a path name to create, rename, or delete a directory.

You can specify path names using both wide strings and multibyte strings. If you specify a multibyte string, a buffer for conversion to wide characters will be allocated on the stack. Be careful with conversions to wide characters, though, because they are not thread-safe. You should use a wide string unless you have a specific reason not to.

Member Functions

Directory Constructor.
Initialize Opens the specified directory.
TryInitialize Tries to open the specified directory.
Finalize Closes a directory.
V ~Directory Destructor.
Read Loads the specified number of entries from a directory.
TryRead Loads the specified number of entries from a directory.
SetPriority Sets the priority of a directory.
TrySetPriority Sets the priority of a directory.

Class Hierarchy

nn::util::NonCopyable
  nn::fs::Directory

Revision History

2011/12/01
Noted that conversions to wide strings are not thread-safe.
2011/10/12
Added functions for setting access priorities.
2010/01/29
Initial version.

CONFIDENTIAL