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.

DLL

Rtype.File.dll

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 a string that indicates the date and time when the directory was created.

Exists

Gets a value that indicates whether the directory is exist.

Fitted

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

FullName

Gets the full path of the directory.

LastAccessTime

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

LastWriteTime

Gets a 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 a date and time when the directory was created.

LastAccessTime(string)

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

LastWriteTime(string)

Sets a 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 a list of subdirectories that are direct child.

GetDirectories(string)

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

GetFiles()

Gets a list of files that are direct child.

GetFiles(string)

Gets a 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.

Downloads for latest version.

Downloads the file and directory class ver 1.0.0.0 for Any CPU.

Downloads the file and directory class ver 1.0.0.0 for x86.

Downloads the file and directory class ver 1.0.0.0 for x64.

Downloads the source of file and directory class ver 1.0.0.0.

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

Copyright © Cooker All rights reserved.