Path functions for URL

后端 未结 4 1483
盖世英雄少女心
盖世英雄少女心 2021-01-18 13:13

I want to use functions of Path class (GetDirectoryName, GetFileName, Combine,etc.) with paths in URL format with slash (/).

E

4条回答
  •  臣服心动
    2021-01-18 13:25

    For GetDirectoryName(), you can use

    pageRoot = uri.Remove(uri.LastIndexOf('/') + 1);
    

提交回复
热议问题