C# Class mobSocial.Data.Helpers.PathUtility

显示文件 Open project: mobsoftware/mobsocial

Public Methods

Method 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 method

public static GetFileExtensionFromContentType ( string contentType ) : string
contentType string
return string

GetFileSavePath() public static method

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
return string