You.i Engine
CYIDir Class Reference

Detailed Description

This class provides functionality for working with directories.

#include <utility/YiDir.h>

Static Public Member Functions

static const CYIStringGetSeparator ()
 
static std::vector< CYIStringGetListing (const CYIString &directoryName)
 
static bool AreDirectoryOperationsSupported ()
 
static bool DirectoryExists (const CYIString &path)
 
static bool CreateDirectory (const CYIString &path, bool bCreateParents=false)
 
static bool RemoveDirectory (const CYIString &path)
 

Member Function Documentation

static bool CYIDir::AreDirectoryOperationsSupported ( )
static

Returns true if directories can be queried, created and destroyed.

static bool CYIDir::CreateDirectory ( const CYIString path,
bool  bCreateParents = false 
)
static

Creates the final directory in an absolute or relative path. If bCreateParents is true, also creates all listed directories leading up to the final directory. Returns true if directory exists or has been created.

static bool CYIDir::DirectoryExists ( const CYIString path)
static

Returns true if directory exists at the absolute or relative path specified.

static std::vector<CYIString> CYIDir::GetListing ( const CYIString directoryName)
static

Returns a list of files and folders contained in the directory specified by directoryName.

The list will be empty if the directory is empty, the specified path is not a directory, or the specified path does not exist.

Note
On the Tizen platform this method will only return a listing of files which have been accessed previously in the application's current session. This is a limitation due to the sandboxed file system used by the NaCl environment on Tizen.
static const CYIString& CYIDir::GetSeparator ( )
static

Returns the native directory separator character for the current platform. On Windows, it would be '\' and on Unix and Unix-derivative systems it would be '/'.

static bool CYIDir::RemoveDirectory ( const CYIString path)
static

Removes the final directory in an absolute or relative path if it is empty. Returns true if removal is successful.


The documentation for this class was generated from the following file: