home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Headers / misckit / MiscFile+Creation.h < prev    next >
Encoding:
Text File  |  1995-01-26  |  1.3 KB  |  38 lines

  1. /************************************************************************
  2.   CATEGORY:            MiscFile (Creation)
  3.   PROGRAMMER:        Todd Thomas, Copyright 1994, 1995.
  4.   BEGAN:            December 22, 1994
  5.   LAST CHANGED:        January 25, 1995
  6.   CHANGES:            -
  7.   VERSION:            0.2
  8.   DECLARED IN:        <misckit/MiscFile.h>
  9.   
  10.   Adds the ability to create another instance of a MiscFile from another.
  11.   These methods all return an instance of MiscFile unless there was an
  12.   error (then they return nil). You are responsible for freeing the
  13.   instance returned. And if nil is returned you can always use the
  14.   -errorCode method to find out why.
  15.  
  16.   This object is included in the MiscKit by permission from the author
  17.   and its use is governed by the MiscKit license, found in the file
  18.   "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  19.   for a list of all applicable permissions and restrictions.
  20.   
  21.  *************************************************************************/
  22.  
  23.  
  24. @interface MiscFile (Creation)
  25.  
  26. // The first method will always overwrite newPath if it already existed.
  27. - (MiscFile *)createCopyNamed: (const char *)newPath;
  28. - (MiscFile *)createCopyNamed: (const char *)newPath overwrite: (BOOL)kill;
  29.  
  30. - (MiscFile *)createSymbolicLinkNamed: (const char *)newLink;
  31. - (MiscFile *)createHardLinkNamed: (const char *)newLink;
  32.  
  33. - (MiscFile *)symbolicLinkSource;
  34.  
  35. @end
  36.  
  37.  
  38.