src/utils/directory.js
function readFilenames(repoState, dirName) {
    const files = read(repoState, dirName);

    return files.map((file) => {
        return file.getPath();
    });
}
function readFilenames(repoState, dirName) {
    const files = read(repoState, dirName);

    return files.map((file) => {
        return file.getPath();
    });
}
List files in a directory (shallow)
@param {RepositoryState} repoState
@param {Path} dirName
@return {Array<Path>}