Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

LocalItem Class

Namespace: Rebex.IO
Assembly: Rebex.Common.dll (version 7.0.9147)

Represents a file or directory on the local file system.

Syntax
public class LocalItem : FileSystemItem
Inheritance
Object
FileSystemItem
LocalItem
Inherited Members
FileSystemItem.CreationTime
FileSystemItem.LastAccessTime
FileSystemItem.LastWriteTime
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)

Constructors

Name Description
LocalItem(String)

Initializes a new instance of the LocalItem class.

Properties

Name Description
Attributes

Gets item attributes.

CreationTime

Gets the creation time of the item. Inherited from FileSystemItem.

Exists

Gets a value indicating whether the file or directory exists.

FullPath

Gets the full path of the file or directory.

IsDirectory

Gets a value indicating whether the item is a directory.

IsFile

Gets a value indicating whether the item is a file.

IsLink

Gets a value indicating whether the item is a link.

LastAccessTime

Gets the last access time of the item. Inherited from FileSystemItem.

LastWriteTime

Gets the last modification time of the item. Inherited from FileSystemItem.

Length

Gets file length.

Name

Gets the name of the file or directory.

Path

Gets the relative path of the file or directory.

Methods

Name Description
ComputeCrc32()

Computes the CRC32 (Cyclic Redundancy Check) value of the file.

Delete()

Deletes the local item.

GetChecksum(String, ChecksumAlgorithm)

Calculates the checksum for the specified file.

GetChecksum(String, ChecksumAlgorithm, Int64, Int64)

Calculates the checksum of the specified part of the specified file.

GetCreationTime()

Gets the creation time of the item.

GetDirectories()

Gets the list of directory items in a directory represented by this object. Fails if this object is not a directory.

GetFiles()

Gets the list of file items in a directory represented by this object. Fails if this object is not a directory.

GetLastAccessTime()

Gets the last access time of the item.

GetLastWriteTime()

Gets the last modification time of the item.

SetCreationTime(DateTime)

Sets the creation time of the item.

SetLastAccessTime(DateTime)

Sets the last access time of the item.

SetLastWriteTime(DateTime)

Sets the last modification time of the item.

ToString()

Returns the full path of the item.

In This Article
  • Constructors
  • Properties
  • Methods
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies