linux下面的base那么把/mnt/d/mydocument/a.txt截断得到目录名/mnt/d/mydocument。
  
windows下面有这样的api么?