public VirtualFile resolve(String path){
  if (path.charAt(0) == '/') {
    String relativePath=path.substring(1);
    for (    File directory : directories) {
      File file=FileUtil.openFile(directory,relativePath);
      if ((file != null) && file.exists()) {
        return new LocalFile(file);
      }
    }
  }
  return null;
}

public VirtualFile resolve ( String path ) { if ( path . charAt ( 0 ) == '/' ) { String relativePath = path . substring ( 1 ) ; for ( File directory : directories ) { File file = FileUtil . openFile ( directory , relativePath ) ; if ( ( file != null ) && file . exists ( ) ) { return new LocalFile ( file ) ; } } } return null ; }
resolves paths with a leading slash and relative to a source path directory .
