The correct minimatch pattern would be ./A/**/*. In this case, the new code works.