resolveSymbolicLinks method

String? resolveSymbolicLinks(
  1. String path
)

Returns a canonicalized path, or null if the path cannot be resolved.

Implementation

String? resolveSymbolicLinks(String path) {
  final normalizedPath = p.normalize(path);
  final type = FileSystemEntity.typeSync(normalizedPath, followLinks: true);
  if (type == FileSystemEntityType.notFound) return null;
  return File(normalizedPath).resolveSymbolicLinksSync();
}