The StorageHelper type exposes the following members.
Back to Top
Back to Top
Back to Top
Methods
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.
|
![]() ![]() | EnsureLocalPath |
Ensures path on local file system for temp or cache folder.
|
![]() ![]() | GetByteArrayFromStream |
Returns byte array from input stream.
|
![]() ![]() | 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 |
Returns true, if the given file stream is bound to an external source
|
![]() ![]() | IsExternalStorage |
Returns whether current instance running on external storage.
|
![]() ![]() | IsSameStorageProvider |
Returns true, if two given paths use the same storage provider
|
![]() ![]() | LogDeleteFileTask |
Logs the file delete task for the web farm server
|
![]() ![]() | LogDirectoryDeleteTask |
Logs the directory delete task for the web farm server
|
![]() ![]() | LogUpdateFileTask |
Logs the file update task for the web farm server
|
![]() ![]() | MapStoragePath |
Maps the given storage path to a specific provider
|
![]() ![]() | MapZippedFolders |
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
|
Fields
Name | Description | |
---|---|---|
![]() ![]() | BUFFER_SIZE |
Buffer size 64 kB.
|
![]() ![]() | DEFAULT_IMAGES_PATH |
Default path to the images folder
|
Properties
Name | Description | |
---|---|---|
![]() ![]() | IsDefaultStorageExternal |
Returns whether current instance running on external storage.
|
![]() ![]() | UseZippedResources |
If true, the system is allowed to use zipped resources such as SQL installation scripts, web templates, or images
|
See Also