Using path.basename to get the dir. path of descriptor