C# 获取路径的最后一个文件夹名称

内容纲要

new DirectoryInfo(item).Name
var path = @"/Users/smcho/filegen_from_directory/AIRPassthrough/";
var dirName = new DirectoryInfo(path).Name;
点赞
  1. bupron bupron说道:

    Thank you for each of your hard work on this web page. My aunt really likes making time for investigations and it's really obvious why. Most of us learn all of the lively method you offer precious suggestions through this web site and even increase participation from some other people on the matter so our favorite girl is now learning a lot of things. Take advantage of the rest of the year. You are always doing a really great job.

  2. A lot of thanks for each of your hard work on this web page. Kim really likes going through investigation and it's really easy to understand why. Many of us know all of the dynamic method you make powerful steps on this web blog and as well as improve participation from people on that issue so our girl is in fact learning a lot of things. Have fun with the remaining portion of the new year. You are conducting a pretty cool job.

发表评论

邮箱地址不会被公开。 必填项已用*标注

You must enable javascript to see captcha here!