org.apache.hadoop.fs
Class FileUtil.HardLink
java.lang.Object
org.apache.hadoop.fs.FileUtil.HardLink
- Enclosing class:
- FileUtil
public static class FileUtil.HardLink
- extends Object
Class for creating hardlinks.
Supports Unix, Cygwin, WindXP.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUtil.HardLink
public FileUtil.HardLink()
createHardLink
public static void createHardLink(File target,
File linkName)
throws IOException
- Creates a hardlink
- Throws:
IOException
getLinkCount
public static int getLinkCount(File fileName)
throws IOException
- Retrieves the number of links to the specified file.
- Throws:
IOException
Copyright © 2008 The Apache Software Foundation