Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7674 in orxonox.OLD for trunk/src/lib/util


Ignore:
Timestamp:
May 18, 2006, 11:13:57 AM (19 years ago)
Author:
bensch
Message:

trunk: better file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/util/file.cc

    r7673 r7674  
    200200bool File::isDirectory() const
    201201{
    202   // checking for the termination of the string given. If there is a "/" at the end cut it away
    203   //if (this->_name[this->_name.size()-1] == '/' ||
    204   //    this->_name[this->_name.size()-1] == '\\')
    205   //{
    206   //  tmpDirName.erase(tmpDirName.size()-1);
    207   //}
    208   printf("DIR IS: %s ", this->name().c_str());
    209   if (this->_status)
    210     printf("OK\n");
    211   else
    212     printf("FUCK\n");
    213 
    214202  return (this->_status != NULL && this->_status->st_mode & (S_IFDIR));
    215203}
Note: See TracChangeset for help on using the changeset viewer.