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

2019年7月5日 4589点热度 9人点赞 2条评论
内容纲要
new DirectoryInfo(item).Name
var path = @"/Users/smcho/filegen_from_directory/AIRPassthrough/";
var dirName = new DirectoryInfo(path).Name;

痴者工良

高级程序员劝退师

文章评论