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 java.lang.Object
Class for creating hardlinks.
Supports Unix, Cygwin, WindXP.
Method Summary |
static void |
createHardLink(java.io.File target,
java.io.File linkName)
Creates a hardlink |
static int |
getLinkCount(java.io.File fileName)
Retrieves the number of links to the specified file. |
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(java.io.File target,
java.io.File linkName)
throws java.io.IOException
- Creates a hardlink
- Throws:
java.io.IOException
getLinkCount
public static int getLinkCount(java.io.File fileName)
throws java.io.IOException
- Retrieves the number of links to the specified file.
- Throws:
java.io.IOException
Copyright © 2009 The Apache Software Foundation