isPathExists function

bool isPathExists(
  1. String? path, {
  2. bool relative = true,
})

Implementation

bool isPathExists(String? path, {bool relative = true}) {
  var absolutePath = getAbsolutePath(path);
  var lsResult = run('ls', [absolutePath]);
  return (lsResult != null && lsResult.isNotEmpty);
}