Achilles.Acme.Storage.Azure.FileNameHelpers.GetFileName C# (CSharp) Метод

GetFileName() публичный статический Метод

Get the fileName of the specified file
public static GetFileName ( string filePath ) : string
filePath string file name, absolute path
Результат string
        public static string GetFileName( string filePath )
        {
            if ( filePath.EndsWith( @"/" ) )
                throw new Exception( "Invalid argument for function:GetFileName" );

            int idx = filePath.LastIndexOf( '/' );
            return filePath.Substring( idx + 1 );
        }