Ignore:
Timestamp:
Nov 17, 2008, 2:27:46 AM (13 years ago)
Author:
Peter
Message:

adding a function FileUtil::lexists that uses lstat rather than stat.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/FileUtil.h

    r1487 r1627  
    8888    bool exists(void) const;
    8989
     90    /**
     91       Same as exists(void) but uses \a lstat rather than \a
     92       stat. That implies that the function will return true also if
     93       \a path is a broken link.
     94
     95       \return true if file exists
     96
     97       \see lstat(2)
     98       
     99       \since New in yat 0.5
     100     */
     101    bool lexists(void) const;
     102
    90103    ///
    91104    /// \brief Get path associated with the object.
     
    98111    ///
    99112    FileUtil(const FileUtil&);
     113    FileUtil& operator=(const FileUtil&);
     114
     115    bool exists_common(bool) const;
    100116
    101117    std::string path_;
Note: See TracChangeset for help on using the changeset viewer.