Let Node itself do the work. const path = require('path'); const relative = path.relative(parent, dir); return relative && !relative.startsWith('.
確定! 回上一頁