C# Class CKFinder.Connector.Util

Afficher le fichier Open project: Achilles-Software/CloudStorageProvider

Méthodes publiques

Méthode Description
ArrayContains ( Array array, object value, System comparer ) : bool
CreateDirectory ( string path ) : Achilles.Acme.Storage.IO.DirectoryInfo

This method should provide safe substitude for Directory.CreateDirectory().

This method creates all the directory structure if needed.

The System.IO.Directory.CreateDirectory() method has a bug that gives an error when trying to create a directory and the user has no rights defined in one of its parent directories. The CreateDirectory() should be a good replacement to solve this problem.

GetMACTripleDESHash ( string input ) : string

Hash an input string and return the hash as a 40 character hexadecimal string.

ReadTextFile ( string filePath ) : string
encodeURIComponent ( string _string ) : string

Private Methods

Méthode Description
CreateDirectoryUsingDll ( Achilles dir ) : void
Util ( ) : System
_mkdir ( string path ) : int

Method Details

ArrayContains() public static méthode

public static ArrayContains ( Array array, object value, System comparer ) : bool
array System.Array
value object
comparer System
Résultat bool

CreateDirectory() public static méthode

This method should provide safe substitude for Directory.CreateDirectory().

This method creates all the directory structure if needed.

The System.IO.Directory.CreateDirectory() method has a bug that gives an error when trying to create a directory and the user has no rights defined in one of its parent directories. The CreateDirectory() should be a good replacement to solve this problem.

public static CreateDirectory ( string path ) : Achilles.Acme.Storage.IO.DirectoryInfo
path string The directory path to be created.
Résultat Achilles.Acme.Storage.IO.DirectoryInfo

GetMACTripleDESHash() public static méthode

Hash an input string and return the hash as a 40 character hexadecimal string.
public static GetMACTripleDESHash ( string input ) : string
input string
Résultat string

ReadTextFile() public static méthode

public static ReadTextFile ( string filePath ) : string
filePath string
Résultat string

encodeURIComponent() public static méthode

public static encodeURIComponent ( string _string ) : string
_string string
Résultat string