Метод | Описание | |
---|---|---|
ClearFileSystem ( ) : void |
Clears a file system. This will delete all files and folders recursivly. Handle with care... Possibly an internal method? |
|
DeleteDirectory ( string VirtualPath ) : void |
Deletes a spefic directory from a virtual path Virtual path is the path starting from the /files/ containers The entity is queried against to current blog id |
|
DeleteFile ( string VirtualPath ) : void |
deletes a file by virtual path
|
|
DirectoryExists ( string VirtualPath ) : bool |
Returns wether or not the specific directory by virtual path exists
|
|
FileExists ( string VirtualPath ) : bool |
boolean wether a file exists by its virtual path
|
|
GetDirectories ( |
gets all the directories underneath a base directory. Only searches one level.
|
|
GetDirectory ( |
gets a directory by a basedirectory and a string array of sub path tree
|
|
GetDirectory ( |
gets a directory by a basedirectory and a string array of sub path tree
|
|
GetDirectory ( string VirtualPath ) : FileSystem.Directory |
gets a directory by the virtual path
|
|
GetDirectory ( string VirtualPath, bool CreateNew ) : FileSystem.Directory | ||
GetFile ( string VirtualPath ) : FileSystem.File |
gets a specific file by virtual path
|
|
GetFiles ( |
gets all the files in a directory, only searches one level
|
|
ImageThumbnail ( string VirtualPath, int MaximumSize ) : FileSystem.Image | ||
Initialize ( string name, System config ) : void | ||
UploadFile ( byte FileBinary, string FileName, |
uploads a file to the provider container
|
|
UploadFile ( byte FileBinary, string FileName, |
uploads a file to the provider container
|
Метод | Описание | |
---|---|---|
CleanVirtualPath ( string VirtualPath ) : string | ||
CreateDirectory ( string VirtualPath ) : FileSystem.Directory |
Creates a directory at a specific path Virtual path is the path starting from the /files/ containers The entity is created against the current blog id |
|
FileToByteArray ( string FilePath ) : byte[] |
Converts a file path to a byte array for handler processing
|
|
GetFileContents ( |
gets the file contents via Lazy load, however in the DbProvider the Contents are loaded when the initial object is created to cut down on DbReads
|
|
VirtualPathToUNCPath ( string VirtualPath ) : string |
public DeleteDirectory ( string VirtualPath ) : void | ||
VirtualPath | string | The path to delete |
Результат | void |
public DeleteFile ( string VirtualPath ) : void | ||
VirtualPath | string | virtual path |
Результат | void |
public DirectoryExists ( string VirtualPath ) : bool | ||
VirtualPath | string | The virtual path to query |
Результат | bool |
public FileExists ( string VirtualPath ) : bool | ||
VirtualPath | string | the virtual path |
Результат | bool |
public GetDirectories ( |
||
BaseDirectory | the base directory | |
Результат | IEnumerable |
public GetDirectory ( |
||
BaseDirectory | the base directory object | |
Результат | FileSystem.Directory |
public GetDirectory ( |
||
BaseDirectory | the base directory object | |
CreateNew | bool | if set will create the directory structure |
Результат | FileSystem.Directory |
public GetDirectory ( string VirtualPath ) : FileSystem.Directory | ||
VirtualPath | string | the virtual path |
Результат | FileSystem.Directory |
public GetDirectory ( string VirtualPath, bool CreateNew ) : FileSystem.Directory | ||
VirtualPath | string | |
CreateNew | bool | |
Результат | FileSystem.Directory |
public GetFile ( string VirtualPath ) : FileSystem.File | ||
VirtualPath | string | the virtual path of the file |
Результат | FileSystem.File |
public GetFiles ( |
||
BaseDirectory | the base directory | |
Результат | IEnumerable |
public ImageThumbnail ( string VirtualPath, int MaximumSize ) : FileSystem.Image | ||
VirtualPath | string | |
MaximumSize | int | |
Результат | FileSystem.Image |
public Initialize ( string name, System config ) : void | ||
name | string | |
config | System | |
Результат | void |
public UploadFile ( byte FileBinary, string FileName, |
||
FileBinary | byte | file contents as byte array |
FileName | string | the file name |
BaseDirectory | directory object that is the owner | |
Результат | FileSystem.File |
public UploadFile ( byte FileBinary, string FileName, |
||
FileBinary | byte | the contents of the file as a byte array |
FileName | string | the file name |
BaseDirectory | the directory object that is the owner | |
Overwrite | bool | boolean wether to overwrite the file if it exists. |
Результат | FileSystem.File |