D2BS
Public Member Functions | Public Attributes

Folder Class Reference

Represents a folder. More...

List of all members.

Public Member Functions

Folder create (String name)
 Create a new directory.
bool remove ()
 Remove the directory.
String[] getFiles ()
 Get the filename for each of the files in the directory.
String[] getFolders ()
 Get the name for each of the sub-directories in the current directory.

Public Attributes

String name
 The path name to the directory.

Detailed Description

Represents a folder.


Member Function Documentation

Folder Folder::create ( String  name)

Create a new directory.

Parameters:
nameThe name of the directory to create under the current directory.
Returns:
The new Folder created.
String [] Folder::getFiles ( )

Get the filename for each of the files in the directory.

Returns:
An array of all the filenames.
String [] Folder::getFolders ( )

Get the name for each of the sub-directories in the current directory.

Returns:
An array of all the folder names.
bool Folder::remove ( )

Remove the directory.

Must be empty to work properly.

Returns:
true.