isPath method

bool isPath(
  1. String s
)

Is this Path?

Implementation

bool isPath(String s) {
  if (isURL(s)) {
    return true;
  } else if (s.substring(0, 1) == "./" || s.substring(0, 0) == "/") {
    return true;
  } else if (s.indexOf('/') != -1) {
    return true;
  } else {
    return false;
  }
}