Table of Contents

Class CPFileBaseClass

Namespace
Contensive.BaseClasses
Assembly
CPBase.dll

This class has been deprecated. use cp.CdnFiles, cp.PrivateFiles, cp.WwwFiles, or cp.TempFiles instead.

public abstract class CPFileBaseClass
Inheritance
CPFileBaseClass
Inherited Members

Methods

AppendVirtual(string, string)

Append content to a text file in the content files. If the file does not exist it will be created.

[Obsolete("Deprecated, please use cp.CdnFiles, cp.PrivateFiles, cp.WwwFiles, or cp.TempFiles instead.", false)]
public abstract void AppendVirtual(string Filename, string FileContent)

Parameters

Filename string

The filename of the file to be appended. May include subfolders in the content file area. It should not include a leading slash. Folder slashes should be .

FileContent string

Test appended to the file

CopyVirtual(string, string)

Copies a file in the content file area to another. If the destination does not exist it is created. Filenames may include subfolders but should not include a leading slash.

[Obsolete("Deprecated, please use cp.cdnFiles, cp.privateFiles, cp.WwwFiles, or cp.TempFiles instead.", false)]
public abstract void CopyVirtual(string SourceFilename, string DestinationFilename)

Parameters

SourceFilename string
DestinationFilename string

CreateFolder(string)

Create a folder given a physical folder path.

[Obsolete("Deprecated, please use cp.cdnFiles, cp.privateFiles, cp.WwwFiles, or cp.TempFiles instead.", false)]
public abstract void CreateFolder(string FolderPath)

Parameters

FolderPath string

Delete(string)

Delete a file within the file space.

[Obsolete("Deprecated, please use cp.cdnFiles, cp.privateFiles, cp.WwwFiles, or cp.TempFiles instead.", false)]
public abstract void Delete(string Filename)

Parameters

Filename string

DeleteFolder(string)

Delete a folder within the file space

[Obsolete("Deprecated, please use cp.cdnFiles, cp.privateFiles, cp.WwwFiles, or cp.TempFiles instead.", false)]
public abstract void DeleteFolder(string folderPath)

Parameters

folderPath string

DeleteVirtual(string)

Delete a file in the content file area. The filename may contain subfolders and should not begin with a leading slash.

[Obsolete("Deprecated, please use cp.cdnFiles, cp.privateFiles, cp.WwwFiles, or cp.TempFiles instead.", false)]
public abstract void DeleteVirtual(string Filename)

Parameters

Filename string

Read(string)

Read a text file within the file space.

[Obsolete("Deprecated, please use cp.cdnFiles, cp.privateFiles, cp.WwwFiles, or cp.TempFiles instead.", false)]
public abstract string Read(string Filename)

Parameters

Filename string

Returns

string

ReadVirtual(string)

Read a text file in the content file area. The filename may contain subfolders and should not begin with a leading slash.

[Obsolete("Deprecated, please use cp.cdnFiles, cp.privateFiles, cp.WwwFiles, or cp.TempFiles instead.", false)]
public abstract string ReadVirtual(string Filename)

Parameters

Filename string

Returns

string

Save(string, string)

Save or create a text file within the file space.

[Obsolete("Deprecated, please use cp.cdnFiles, cp.privateFiles, cp.WwwFiles, or cp.TempFiles instead.", false)]
public abstract void Save(string Filename, string FileContent)

Parameters

Filename string
FileContent string

SaveVirtual(string, string)

Save a text file in the content file area. The filename may contain subfolders and should not begin with a leading slash.

[Obsolete("Deprecated, please use cp.cdnFiles, cp.privateFiles, cp.WwwFiles, or cp.TempFiles instead.", false)]
public abstract void SaveVirtual(string Filename, string FileContent)

Parameters

Filename string
FileContent string

fileExists(string)

Returns true if a file exists

[Obsolete("Deprecated, please use cp.cdnFiles, cp.privateFiles, cp.WwwFiles, or cp.TempFiles instead.", false)]
public abstract bool fileExists(string pathFileName)

Parameters

pathFileName string

Returns

bool

fileList(string)

Get a crlf delimited list of files in a given path. Each row is a tab delimited list of attributes for each file. The attributes are:

[Obsolete("Deprecated, please use cp.cdnFiles, cp.privateFiles, cp.WwwFiles, or cp.TempFiles instead.", false)]
public abstract string fileList(string folderName)

Parameters

folderName string

Returns

string

fileList(string, int)

Get a crlf delimited list of files in a given path. Each row is a tab delimited list of attributes for each file. The attributes are:

[Obsolete("Deprecated, please use cp.cdnFiles, cp.privateFiles, cp.WwwFiles, or cp.TempFiles instead.", false)]
public abstract string fileList(string folderName, int pageSize)

Parameters

folderName string
pageSize int

Returns

string

fileList(string, int, int)

Get a crlf delimited list of files in a given path. Each row is a tab delimited list of attributes for each file. The attributes are: Name Attributes DateCreated DateLastAccessed DateLastModified Size Type

[Obsolete("Deprecated, please use cp.cdnFiles, cp.privateFiles, cp.WwwFiles, or cp.TempFiles instead.", false)]
public abstract string fileList(string folderName, int pageSize, int pageNumber)

Parameters

folderName string
pageSize int
pageNumber int

Returns

string

folderExists(string)

Returns true if a folder exists

[Obsolete("Deprecated, please use cp.cdnFiles, cp.privateFiles, cp.WwwFiles, or cp.TempFiles instead.", false)]
public abstract bool folderExists(string folderName)

Parameters

folderName string

Returns

bool

folderList(string)

Get a crlf delimited list of folders in a given path. Each row is a tab delimited list of attributes for each folder. The attributes are: Name Attributes DateCreated DateLastAccessed DateLastModified Type

[Obsolete("Deprecated, please use cp.cdnFiles, cp.privateFiles, cp.WwwFiles, or cp.TempFiles instead.", false)]
public abstract string folderList(string folderName)

Parameters

folderName string

Returns

string

Returns a URL to a file in the File.cdn store

[Obsolete("Deprecated, please use cp.cdnFiles, cp.privateFiles, cp.WwwFiles, or cp.TempFiles instead.", false)]
public abstract string getVirtualFileLink(string virtualFilename)

Parameters

virtualFilename string

Returns

string