StorageHelper Methods |
The StorageHelper type exposes the following members.
Name | Description | |
---|---|---|
CopyFileAcrossProviders |
Copies two files across different storage providers
| |
DeleteOldFiles(String, DateTime, Boolean) |
Deletes files older than specified time from the file system.
| |
DeleteOldFiles(DirectoryInfo, DateTime, Boolean) |
Deletes files older than specified time from the file system.
| |
GetDirectoryInfo |
Returns new instance of directory info.
| |
GetFileInfo |
Returns new instance of FileInfo object.
| |
GetFileStream(String, FileMode) |
Returns new instance of file stream.
| |
GetFileStream(String, FileMode, FileAccess) |
Returns new instance of file stream.
| |
GetFileStream(String, FileMode, FileAccess, FileShare) |
Returns new instance of file stream.
| |
GetFileStream(String, FileMode, FileAccess, FileShare, Int32) |
Returns new instance of file stream.
| |
GetFullFilePhysicalPath |
Returns full physical path of a file or folder. Does not change the ending slash
| |
GetImageUrl |
Gets the real file path for the given path (for zip returns the path to the zip file)
| |
GetRealFilePath |
Gets the real file path for the given path (for zip returns the path to the zip file)
| |
GetStorageProvider |
Gets the storage provider based on the given path, updates the path so it matches the provider internal structure
| |
GetWebApplicationRelativePath |
Converts the given physical path to an application relative path
| |
IsExternalFileStream | Obsolete.
Returns true, if the given file stream is bound to an external source
| |
IsExternalStorage |
Returns whether the path is targeting an external storage.
| |
IsSameStorageProvider |
Returns true, if two given paths use the same storage provider
| |
IsSharedStorage |
Returns whether the path is targeting a shared storage.
| |
IsZippedFilePath |
Returns true if the given path is a path to the zipped file
| |
LogDeleteFileTask | Obsolete.
Logs the file delete task for the web farm server
| |
LogDirectoryDeleteTask | Obsolete.
Logs the directory delete task for the web farm server
| |
LogUpdateFileTask | Obsolete.
Logs the file update task for the web farm server
| |
MapStoragePath |
Maps the given storage path to a specific provider
| |
MapZippedFolders | Obsolete.
Maps the automatic zipped folders
| |
MoveFileAcrossProviders |
Copies two files across different storage providers
| |
SaveBinaryDataToDisk |
Saves the file from given byte array to the file system.
| |
SaveFileToDisk |
Saves the given file to the disk file
| |
SaveStreamToDisk |
Saves the file from given stream to the file system.
| |
UnMapStoragePath |
Removes the mapping to a storage provider
| |
UseLocalFileSystemForPath |
Maps the given storage path to a local file system provider
|