(file) Return to FileSystem.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/FileSystem.h between version 1.4 and 1.9

version 1.4, 2001/04/07 12:01:18 version 1.9, 2001/05/06 13:16:16
Line 1 
Line 1 
 //BEGIN_LICENSE  //%/////////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM // Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM
 // //
Line 17 
Line 17 
 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 // DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
 // //
 //END_LICENSE  //==============================================================================
 //BEGIN_HISTORY  
 // //
 // Author:  // Author: Mike Brasher (mbrasher@bmc.com)
 // //
 // $Log$  // Modified By:
 // Revision 1.4  2001/04/07 12:01:18  karl  
 // remove namespace support  
 // //
 // Revision 1.3  2001/02/13 02:06:40  mike  //%/////////////////////////////////////////////////////////////////////////////
 // Added renameFile() method.  
 //  
 // Revision 1.2  2001/02/11 05:42:33  mike  
 // new  
 //  
 // Revision 1.1.1.1  2001/01/14 19:51:36  mike  
 // Pegasus import  
 //  
 //  
 //END_HISTORY  
  
 //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
 // //
Line 96 
Line 83 
     // Get the size of the file in bytes:     // Get the size of the file in bytes:
  
     static Boolean getFileSize(const String& path, Uint32& size);     static Boolean getFileSize(const String& path, Uint32& size);
      /** Get the current working Directory  
     */      /** Get the current working Directory. */
     static Boolean getCurrentDirectory(String& path);     static Boolean getCurrentDirectory(String& path);
  
     /** Remove the given directory. The directory must be empty     /** Remove the given directory. The directory must be empty
Line 114 
Line 101 
         WARNING: This differs significantly from the <TT>removeDirectory</TT>         WARNING: This differs significantly from the <TT>removeDirectory</TT>
         function in that it removes both directories and files and         function in that it removes both directories and files and
         removes a complete hiearchy.  Use with caution.         removes a complete hiearchy.  Use with caution.
           @param path defines the high level directory to be removed
         @parm path defines the high level directory to be removed          @return Boolean True if successful
         @return Boolean - ATTN.  
         @exception  - ATTN: Not sure if there is any exception         @exception  - ATTN: Not sure if there is any exception
     */     */
     static Boolean removeDirectoryHier(const String& path);     static Boolean removeDirectoryHier(const String& path);
Line 154 
Line 140 
     @param filename of second file     @param filename of second file
     ATTN: are filenames local or global???     ATTN: are filenames local or global???
     @return Return true if the two files are identical.     @return Return true if the two files are identical.
   
     @exception Throws CannotOpenFile if either file cannot be opened.     @exception Throws CannotOpenFile if either file cannot be opened.
     */     */
   
     static Boolean compare(     static Boolean compare(
         const String& fileName1,         const String& fileName1,
         const String& fileName2);         const String& fileName2);
  
     // Rename the given file to the new name:      /** Rename the given file to the new name. */
   
     static Boolean renameFile(     static Boolean renameFile(
         const String& oldFileName,         const String& oldFileName,
         const String& newFileName);         const String& newFileName);
   
       /** Translate backward slashes to forward slashes: */
       static void translateSlashes(String& path);
   
       /** Returns true is the given directory is empty. */
       static Boolean isDirectoryEmpty(const String& path);
 }; };
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.4  
changed lines
  Added in v.1.9

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2