Show / Hide Table of Contents

Interface IFile

Namespace: DotNetNuke.Services.FileSystem.Internal
Assembly: DotNetNuke.dll
Syntax
public interface IFile

Methods

Copy(string, string, bool)

Declaration
void Copy(string sourceFileName, string destinationFileName, bool overwrite)
Parameters
Type Name Description
string sourceFileName
string destinationFileName
bool overwrite

Create(string)

Declaration
Stream Create(string path)
Parameters
Type Name Description
string path
Returns
Type Description
Stream

Delete(string)

Declaration
void Delete(string path)
Parameters
Type Name Description
string path

Exists(string)

Declaration
bool Exists(string path)
Parameters
Type Name Description
string path
Returns
Type Description
bool

GetAttributes(string)

Declaration
FileAttributes GetAttributes(string path)
Parameters
Type Name Description
string path
Returns
Type Description
FileAttributes

GetLastWriteTime(string)

Declaration
DateTime GetLastWriteTime(string path)
Parameters
Type Name Description
string path
Returns
Type Description
DateTime

Move(string, string)

Declaration
void Move(string sourceFileName, string destFileName)
Parameters
Type Name Description
string sourceFileName
string destFileName

OpenRead(string)

Declaration
Stream OpenRead(string path)
Parameters
Type Name Description
string path
Returns
Type Description
Stream

ReadAllBytes(string)

Declaration
byte[] ReadAllBytes(string path)
Parameters
Type Name Description
string path
Returns
Type Description
byte[]

SetAttributes(string, FileAttributes)

Declaration
void SetAttributes(string path, FileAttributes fileAttributes)
Parameters
Type Name Description
string path
FileAttributes fileAttributes

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS