Sorry, Patrick, but I think that

  ? IsDirectory( "C:" )  // result: .F. (Should be .T.)

Should be .F. because : is the separator beetwen Unit and directory

please try c function

BOOL PathIsDirectory(  LPCTSTR pszPath );

HB_FUNC( ISDIRECTORY )
{
    hb_retl( PathIsDirectory(  ( LPCTSTR ) hb_parc( 1 ) ) );
}

Patrick Mast escribió:
Hello,

Please consider this sample:

PROCEDURE Main

  ? IsDirectory( "C:\" ) // result: .T.
  ? IsDirectory( "C:" )  // result: .F. (Should be .T.)
  ? IsDirectory( "C" )   // result: .F.

RETURN

IsDirectory( "C:" ) returns .F. while it should return .T.

Patrick

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
xHarbour-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

__________ Información de ESET Smart Security, versión de la base de firmas de virus 3673 (20081208) __________

ESET Smart Security ha comprobado este mensaje.
http://www.eset.com




  
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
xHarbour-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to