org.apache.solr.common.util
Class FileUtils
java.lang.Object
org.apache.solr.common.util.FileUtils
public class FileUtils
- extends Object
- Version:
- $Id: FileUtils.java 824364 2009-10-12 14:41:51Z yonik $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUtils
public FileUtils()
resolvePath
public static File resolvePath(File base,
String path)
- Resolves a path relative a base directory.
This method does what "new File(base,path)" Should do, it wasn't
completely lame: If path is absolute, then a File for that path is returned;
if it's not absoluve, then a File is returnd using "path" as a child
of "base")
sync
public static void sync(File fullFile)
throws IOException
- Copied from Lucene's
FSDirectory.sync(String)
- Parameters:
fullFile
- the File to be synced to disk
- Throws:
IOException
- if the file could not be synced- See Also:
FSDirectory.sync(String)
Copyright © 2009 Apache Software Foundation. All Rights Reserved.