Changeset 46013 in vbox
- Timestamp:
- May 13, 2013 11:52:15 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/dir.h
r46008 r46013 421 421 * compose this, it's NOT sufficient to pass 422 422 * RTDIRENTRY::szName! 423 * @param fFollowSymLinks Whether to follow symbolic links or not. 423 424 * @param penmType Pointer to the RTDIRENTRY::enmType member. If this 424 425 * is not RTDIRENTRYTYPE_UNKNOWN, the function will … … 428 429 * unchanged. 429 430 */ 430 RTDECL(int) RTDirQueryUnknownType(const char *pszComposedName, RTDIRENTRYTYPE *penmType);431 RTDECL(int) RTDirQueryUnknownType(const char *pszComposedName, bool fFollowSymLinks, RTDIRENTRYTYPE *penmType); 431 432 432 433 /** … … 438 439 * compose this, it's NOT sufficient to pass 439 440 * RTDIRENTRY::szName! 441 * @param fFollowSymLinks Whether to follow symbolic links or not. 440 442 * @param penmType Pointer to the RTDIRENTRY::enmType member or 441 443 * similar. Will NOT be checked on input. 442 444 * @param pObjInfo The object info buffer to use with RTPathQueryInfo. 443 445 */ 444 RTDECL(int) RTDirQueryUnknownTypeEx(const char *pszComposedName, RTDIRENTRYTYPE *penmType, PRTFSOBJINFO pObjInfo);446 RTDECL(int) RTDirQueryUnknownTypeEx(const char *pszComposedName, bool fFollowSymLinks, RTDIRENTRYTYPE *penmType, PRTFSOBJINFO pObjInfo); 445 447 446 448 /** -
trunk/src/VBox/Runtime/r3/dir.cpp
r46008 r46013 732 732 733 733 734 RTDECL(int) RTDirQueryUnknownTypeEx(const char *pszComposedName, RTDIRENTRYTYPE *penmType, PRTFSOBJINFO pObjInfo) 735 { 736 int rc = RTPathQueryInfoEx(pszComposedName, pObjInfo, RTFSOBJATTRADD_NOTHING, RTPATH_F_ON_LINK); 734 RTDECL(int) RTDirQueryUnknownTypeEx(const char *pszComposedName, bool fFollowSymLinks, 735 RTDIRENTRYTYPE *penmType, PRTFSOBJINFO pObjInfo) 736 { 737 int rc = RTPathQueryInfoEx(pszComposedName, pObjInfo, RTFSOBJATTRADD_NOTHING, 738 fFollowSymLinks ? RTPATH_F_FOLLOW_LINK : RTPATH_F_ON_LINK); 737 739 if (RT_FAILURE(rc)) 738 740 return rc; … … 761 763 762 764 763 RTDECL(int) RTDirQueryUnknownType(const char *pszComposedName, RTDIRENTRYTYPE *penmType)765 RTDECL(int) RTDirQueryUnknownType(const char *pszComposedName, bool fFollowSymLinks, RTDIRENTRYTYPE *penmType) 764 766 { 765 767 if (*penmType != RTDIRENTRYTYPE_UNKNOWN) … … 767 769 768 770 RTFSOBJINFO ObjInfo; 769 return RTDirQueryUnknownTypeEx(pszComposedName, penmType, &ObjInfo);771 return RTDirQueryUnknownTypeEx(pszComposedName, fFollowSymLinks, penmType, &ObjInfo); 770 772 } 771 773
Note:
See TracChangeset
for help on using the changeset viewer.