private IgfsPath igfsPath(File f) throws IgfsException {
  String path=f.getAbsolutePath();
  if (workDir != null) {
    if (!path.startsWith(workDir))     throw new IgfsException("Path is not located in the work directory [workDir=" + workDir + ", path="+ path+ ']');
    path=path.substring(workDir.length(),path.length());
  }
  return new IgfsPath(path);
}

private IgfsPath igfsPath ( File f ) throws IgfsException { String path = f . getAbsolutePath ( ) ; if ( workDir != null ) { if ( ! path . startsWith ( workDir ) ) throw new IgfsException ( "Path is not located in the work directory [workDir=" + workDir + ", path=" + path + ']' ) ; path = path . substring ( workDir . length ( ) , path . length ( ) ) ; } return new IgfsPath ( path ) ; }
create igfs path for file .
