org.linkedin.util-core/src/main/java/org/linkedin/util/io/resource/FileResource.java
public static Resource create(File root, String path)
  {
    FileResourceProvider frp = null;
    try
    {
      frp = new FileResourceProvider(root);
    }
    catch(IOException e)
    {
      throw new RuntimeException(e);
    }
    return frp.createResource(path);
  }
public static Resource create(File root, String path)
  {
    FileResourceProvider frp = null;
    try
    {
      frp = new FileResourceProvider(root);
    }
    catch(IOException e)
    {
      throw new RuntimeException(e);
    }
    return frp.createResource(path);
  }
Creates a file resource with the root provided and the path (relative to the root).

@param root the root of the resource
@param path the path (relative to root)
@return the resource