C# Class mobSocial.Data.Helpers.PathUtility

Afficher le fichier Open project: mobsoftware/mobsocial

Méthodes publiques

Méthode Description
GetFileExtensionFromContentType ( string contentType ) : string
GetFileSavePath ( string directoryPath, string fileName, bool overwrite = false ) : string

Gets a file path that's safe to write to file system

Method Details

GetFileExtensionFromContentType() public static méthode

public static GetFileExtensionFromContentType ( string contentType ) : string
contentType string
Résultat string

GetFileSavePath() public static méthode

Gets a file path that's safe to write to file system
public static GetFileSavePath ( string directoryPath, string fileName, bool overwrite = false ) : string
directoryPath string
fileName string
overwrite bool
Résultat string