StorageHelper Class |
Namespace: CMS.IO
public static class StorageHelper
The StorageHelper type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | DEFAULT_IMAGES_PATH |
Default path to the images folder
|
Name | Description | |
---|---|---|
![]() ![]() | UseZippedResources |
If true, the system is allowed to use zipped resources such as SQL installation scripts, web templates, or images
|
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
|
![]() ![]() | GetFullFolderPhysicalPath |
Returns full physical path for a folder. Ensures the trailing backslash
|
![]() ![]() | 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
|
![]() ![]() | 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
|
![]() ![]() | MapStoragePath |
Maps the given storage path to a specific provider
|
![]() ![]() | 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
|