Home Cooker Classes Others Rice CookerGX
Classes  >  directory
directory class

Description

Provides the function to manipulate a directory.

Notes

It is a class that is dynamically embedded when the Cooker runs.

This class is distributed as Rtype.File.dll.

The dll file is in the dlls directory in the Cooker's distribution archive.

fitter

SignatureDescription
directory()

Get a new instance of directory class.

directory(string)

Return a directory type instance that is initialized by the path to the directory.

getter

SignatureDescription
CreationTime

Gets the string that indicates the date and time when the directory was created.

Exists

Gets the value that indicates whether the directory is exist.

Fitted

Gets the value that indicates whether this instance was already initialized.

FullName

Gets the full path of the directory.

LastAccessTime

Gets the string that indicates the date and time when the directory was last accessed.

LastWriteTime

Gets the string that indicates the date and time when the directory was last written to.

Name

Gets the name of the directory.

Parent

Gets the parent directory.

Root

Gets the root directory.

TypeName

Gets the type name.

setter

SignatureDescription
CreationTime(string)

Sets the date and time when the directory was created.

LastAccessTime(string)

Sets the date and time when the directory was last accessed.

LastWriteTime(string)

Sets the date and time when the directory was last written to.

method

SignatureDescription
Create()

Create a directory.

CreateSubdirectory(string)

Create a subdirectory.

Delete()

Deletes this directory if it is empty.

Delete(bool)

Removes this directory with the specified operation.

GetDirectories()

Gets the list of direct child subdirectories.

GetDirectories(string)

Gets the list of subdirectories that match to the specified pattern.

GetFiles()

Gets the list of direct child files.

GetFiles(string)

Gets the list of files that match to the specified pattern.

MoveTo(string)

Moves the directory to the specified path.

Refresh()

Refreshes the state of the invoker.

Download.

Please download the directory and file class ( Rtype.File.dll ) from the link below.

Please download the source of the directory and file class from the link below.

The above .dll and source files are distributed as a self-extracting archive of 7z format.

Copyright © Rice All rights reserved.