Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions

SAPDB_Bool Studio_DBFSObject::renameItem ( const Tools_DynamicUTF8String sCompleteOldPath,
const Tools_DynamicUTF8String sCompleteNewPath,
Tools_DynamicUTF8String sError 
)

------------------------------------------------------------------------- function: renameItem description: rename a file or folder arguments: [in] sCompleteOldPath, complete old path of item [in] sCompleteNewPath, complete new path of item [out] sError, error text, if one occured

return value: true if success

--------------------------------------------------------------------------

Definition at line 423 of file Studio_DBFSObject.cpp.

References Tools_DynamicUTF8String::Erase(), getDBFSError(), and Tools_DynamicUTF8String::StrPtr().

Referenced by StudioWeb_StoredQueryTree::renameItem().

{
      sError.Erase();

      Tools_DynamicUTF8String strCopyOfNewPath = sCompleteNewPath;
      Tools_DynamicUTF8String strCopyOfOldPath = sCompleteOldPath;
      
      if (wd101Rename(m_pDBFS,(const char*)strCopyOfOldPath.StrPtr(),(const char*)strCopyOfNewPath.StrPtr()) == sapdbwa_False){
    
        getDBFSError(sError);       
            return SAPDB_FALSE;
    }

      return SAPDB_TRUE;
}


Generated by  Doxygen 1.6.0   Back to index