Class FileWrapper
Assembly: DotNetNuke.dll
Syntax
public class FileWrapper : ComponentBase<IFile, FileWrapper>, IFile
Constructors
FileWrapper()
Declaration
Methods
Copy(string, string, bool)
Declaration
public void Copy(string sourceFileName, string destinationFileName, bool overwrite)
Parameters
Type |
Name |
Description |
string |
sourceFileName |
|
string |
destinationFileName |
|
bool |
overwrite |
|
Create(string)
Declaration
public Stream Create(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
Delete(string)
Declaration
public void Delete(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Exists(string)
Declaration
public bool Exists(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
GetAttributes(string)
Declaration
public FileAttributes GetAttributes(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
GetLastWriteTime(string)
Declaration
public DateTime GetLastWriteTime(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
Move(string, string)
Declaration
public void Move(string sourceFileName, string destFileName)
Parameters
Type |
Name |
Description |
string |
sourceFileName |
|
string |
destFileName |
|
OpenRead(string)
Declaration
public Stream OpenRead(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
ReadAllBytes(string)
Declaration
public byte[] ReadAllBytes(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
SetAttributes(string, FileAttributes)
Declaration
public void SetAttributes(string path, FileAttributes fileAttributes)
Parameters
Implements
Extension Methods