/AUrlHelper

Primary LanguageC#MIT LicenseMIT

AUrlHelper CircleCI

The AUrlHelper is a Nuget Package for getting file name or folder name from the url when you work with cloud storages like S3, Dropbox, GoogleDrive or Azure Blob Storage.

Usages

Add Using

    using AUrlHelper;

Examples

Get Folder Name

    var path = "https://test.com/assets/images/test.png"
    AUrlHelper.GetFolderName(path);
    // return "images" 

or

    var path = "https://test.com/assets/images/test.png"
    path.GetFolderName(path);
    //return "images"

Get File Name

     var path = "https://test.com/assets/images/test.png"
    AUrlHelper.GetFileName(path);
    // return "test.png" 

or

    var path = "https://test.com/assets/images/test.png"
    path.GetFileName(path);
    //return "test.png"

Get File Name Without Extension

     var path = "https://test.com/assets/images/test.png"
    AUrlHelper.GetFileNameWithoutExtension(path);
    // return "test" 

or

    var path = "https://test.com/assets/images/test.png"
    path.GetFileNameWithoutExtension(path);
    //return "test"