Table of Contents

Class FileInfo

Namespace
Kentico.Xperience.AmazonStorage
Assembly
Kentico.Xperience.AmazonStorage.dll

Implementation of FileInfo class for Amazon S3 object.

public class FileInfo : FileInfo
Inheritance
object
FileInfo
Inherited Members
Extension Methods

Constructors

FileInfo(string)

Initializes new instance of FileInfo class.

public FileInfo(string filename)

Parameters

filename string

File name.

Properties

Attributes

File attributes.

public override FileAttributes Attributes { get; set; }

Property Value

FileAttributes

CreationTime

Creation date of file.

public override DateTime CreationTime { get; set; }

Property Value

DateTime

Directory

Directory of file.

public override DirectoryInfo Directory { get; }

Property Value

DirectoryInfo

DirectoryName

Directory name.

public override string DirectoryName { get; }

Property Value

string

Exists

If file exists.

public override bool Exists { get; }

Property Value

bool

Extension

File extension.

public override string Extension { get; }

Property Value

string

FullName

Full name of file (with whole path).

public override string FullName { get; }

Property Value

string

IsReadOnly

If is read only.

public override bool IsReadOnly { get; set; }

Property Value

bool

LastAccessTime

Last access time.

public override DateTime LastAccessTime { get; set; }

Property Value

DateTime

LastWriteTime

Last write time to file.

public override DateTime LastWriteTime { get; set; }

Property Value

DateTime

Length

Length of file.

public override long Length { get; }

Property Value

long

Name

File name of file (without path).

public override string Name { get; }

Property Value

string

Methods

CopyToInternal(string, bool)

Copies current file to destination.

protected override FileInfo CopyToInternal(string destFileName, bool overwrite)

Parameters

destFileName string

Destination file name.

overwrite bool

Specifies whether destination file is overwritten.

Returns

FileInfo

CreateTextInternal()

Creates or opens a file for writing UTF-8 encoded text.

protected override StreamWriter CreateTextInternal()

Returns

StreamWriter

DeleteInternal()

Deletes file.

protected override void DeleteInternal()

MoveToInternal(string)

Moves an existing file to a new file.

protected override void MoveToInternal(string destFileName)

Parameters

destFileName string

Destination file name.

OpenReadInternal()

Creates a read-only ICMSFileStream.

protected override FileStream OpenReadInternal()

Returns

FileStream

OpenTextInternal()

Creates a StreamReader with UTF8 encoding that reads from an existing text file.

protected override StreamReader OpenTextInternal()

Returns

StreamReader

ToString()

Converts current info to string.

public override string ToString()

Returns

string