单项选择题

Node.js的Path模块中,用于获取文件目录的函数是()

A.basename(p[,ext])
B.dirname(p)
C.normalize(p)
D.sep