code: private function resolvePath($value)
      {
          $path = Path::canonicalize($value);
  
          if ('\\' === DIRECTORY_SEPARATOR) {
              $path = str_replace('/', '\\', $path);
          }
  
          return $path;
      }
docs: Resolves a path.
  
  @param string $value The path.
  
  @return string