Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 1.3 KB

README.md

File metadata and controls

55 lines (44 loc) · 1.3 KB

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"