isAutoMemPath function

bool isAutoMemPath(
  1. String filePath, {
  2. String? projectRoot,
})

Check if a file path is within the auto-memory directory.

Implementation

bool isAutoMemPath(String filePath, {String? projectRoot}) {
  final memPath = getAutoMemPath(projectRoot: projectRoot);
  return p.normalize(filePath).startsWith(p.normalize(memPath));
}