C# Class Achilles.Acme.Storage.Azure.FileNameHelpers

Show file Open project: Achilles-Software/CloudStorageProvider

Public Methods

Method Description
AppendDirTag ( string sDirName ) : string

append the final '/' char in the directory name (if not exists)

GetDirectory ( string sFileName ) : string

Get the directory path of the specified file

GetDirectoryName ( string dirPath ) : string

Get the directory name of the specified directory

GetFileName ( string filePath ) : string

Get the fileName of the specified file

IsValid ( string sFileName ) : bool

Check if a blobname(blob or virtual directory) is valid

Method Details

AppendDirTag() public static method

append the final '/' char in the directory name (if not exists)
public static AppendDirTag ( string sDirName ) : string
sDirName string directory name
return string

GetDirectory() public static method

Get the directory path of the specified file
public static GetDirectory ( string sFileName ) : string
sFileName string file name, absolute path
return string

GetDirectoryName() public static method

Get the directory name of the specified directory
public static GetDirectoryName ( string dirPath ) : string
dirPath string directory absolute path
return string

GetFileName() public static method

Get the fileName of the specified file
public static GetFileName ( string filePath ) : string
filePath string file name, absolute path
return string

IsValid() public static method

Check if a blobname(blob or virtual directory) is valid
public static IsValid ( string sFileName ) : bool
sFileName string blob name
return bool