This page has been translated automatically.
Programming
Fundamentials
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Engine Classes
Node-Related Classes
Rendering-Related Classes
Physics-Related Classes
Bounds-Related Classes
GUI-Related Classes
Controls-Related Classes
Pathfinding-Related Classes
Utility Classes
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Dir Class

Dir Class

Members


Dir ()

Default constructor.

Dir (const char * name)

Constructor. Creates a new directory instance.

Arguments

  • const char * name - Directory path to open.

const char * getDirName (int num)

Returns name of the directory with given index.

Arguments

  • int num - Directory index.

Return value

Name of the directory with num index.

int getNumFiles ()

Returns number of files inside the directory.

Return value

Number of files.

size_t getFileSize (int num)

Returns the size of the file with the given index.

Arguments

  • int num - File index.

Return value

File size.

int getNumDirs ()

Returns number of nested directories.

Return value

Number of directories.

int isOpened ()

Checks whether the directory is opened.

Return value

1 if the directory is opened; otherwise, 0.

int open (const char * name)

Opens the directory.

Arguments

  • const char * name - Directory path.

Return value

Directory descriptor.

long long getFileMTime (int num)

Returns the time of the file last modification.

Arguments

  • int num - File index.

Return value

Time of the last modification.

const char * getFileName (int num)

Returns name of the file with given index.

Arguments

  • int num - File index.

Return value

Name of the file with num index.

const char * getName ()

Returns the name of the current directory.

Return value

Directory name.

size_t getSize ()

Returns the size of the current directory.

Return value

Directory size.

int close ()

Closes the directory descriptor.

Return value

Last update: 03.07.2017
Build: ()