file class

Description

Provides the function to manipulate a file.

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
file()

Get a new instance of file class.

file(string)

Gets an instance of the file class that has been initialized by the path to the file.

getter

SignatureDescription
CreationTime

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

Directory

Gets an instance of the directory class that is the parent of the file.

DirectoryName

Gets a string that represent the absolute path of the parent directory.

Exists

Gets a value that indicates whether the file is exist.

Extension

Gets a string that represent the extension part of the file.

Fitted

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

FullName

Gets a full path of the file.

IsReadOnly

Gets a value that indicates whether the file is read only.

LastAccessTime

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

LastWriteTime

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

Length

Gets the size of the file.

Name

Gets a name of the file.

TypeName

Gets the type name.

setter

SignatureDescription
CreationTime(string)

Sets a string that indicates the date and time when the file was created.

IsReadOnly(bool)

Sets a value that indicates whether the file is read only.

LastAccessTime(string)

Sets a string that indicates the date and time when the file was last accessed.

LastWriteTime(string)

Sets a string that indicates the date and time when the file was last written to.

method

SignatureDescription
CopyTo(string)

Copies a file.

CopyTo(string,bool)

Copies a file.

Create()

Creates a file.

Delete()

Deletes a file.

MoveTo(string)

Moves a file to a new location.

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.