org.apache.hadoop.fs
Class FileUtil.HardLink

java.lang.Object
  extended by org.apache.hadoop.fs.FileUtil.HardLink
Enclosing class:
FileUtil

public static class FileUtil.HardLink
extends Object

Class for creating hardlinks. Supports Unix, Cygwin, WindXP.


Constructor Summary
FileUtil.HardLink()
           
 
Method Summary
static void createHardLink(File target, File linkName)
          Creates a hardlink
static int getLinkCount(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
 

Constructor Detail

FileUtil.HardLink

public FileUtil.HardLink()
Method Detail

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