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

Diff for /pegasus/src/Pegasus/Common/FileSystem.cpp between version 1.62 and 1.62.2.2

version 1.62, 2005/11/29 20:06:14 version 1.62.2.2, 2006/02/10 16:09:36
Line 1 
Line 1 
 //%2005////////////////////////////////////////////////////////////////////////  //%2006////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
Line 8 
Line 8 
 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 // EMC Corporation; VERITAS Software Corporation; The Open Group. // EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; Symantec Corporation; The Open Group.
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a copy // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to // of this software and associated documentation files (the "Software"), to
Line 48 
Line 50 
 #include "FileSystem.h" #include "FileSystem.h"
 #include "Dir.h" #include "Dir.h"
  
   #if defined(PEGASUS_OS_TYPE_WINDOWS)
   #define DIR_SEP "\\"
   #else
   #define DIR_SEP "/"
   #endif
   
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 // Clone the path as a C String but discard trailing slash if any: // Clone the path as a C String but discard trailing slash if any:
Line 306 
Line 314 
     for (Uint32 i = 0, n = fileList.size(); i < n; i++)     for (Uint32 i = 0, n = fileList.size(); i < n; i++)
     {     {
         String newPath = path;   // extend path to subdir         String newPath = path;   // extend path to subdir
         newPath.append("/");          newPath.append(DIR_SEP);
         newPath.append(fileList[i]);         newPath.append(fileList[i]);
  
         if (FileSystem::isDirectory(newPath))         if (FileSystem::isDirectory(newPath))
Line 437 
Line 445 
         }         }
         path = tempPath.subString(0, pos);         path = tempPath.subString(0, pos);
         tempPath.remove(0,pos+token);         tempPath.remove(0,pos+token);
         if (FileSystem::exists( path + "/" + filename) == true) {          if (FileSystem::exists( path + DIR_SEP + filename) == true) {
           root = path + "/" + filename;            root = path + DIR_SEP + filename;
           break;           break;
         } else         } else
           {           {


Legend:
Removed from v.1.62  
changed lines
  Added in v.1.62.2.2

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2