Use the util function that already exists isDirectory from utils/fs.ts Use the same function in getRelativePaths
test