FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Testing path existence using UNC format
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Testing path existence using UNC format
Posted: Thu Mar 05, 2020 07:05 AM

Hi,
Can somebody confirm whether lIsDir() or IsDirectory() can accept path in UNC format or not?

My test seems to show that they can't.

TIA

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Testing path existence using UNC format
Posted: Thu Mar 05, 2020 09:52 AM

Both accept UNC path.

When we use IisDir(), trailing slash is optional.
For ISDIRECTORY(), trailing slash should be removed.

I am answering this after testing once again now.

Regards



G. N. Rao.

Hyderabad, India
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: Testing path existence using UNC format
Posted: Thu Mar 05, 2020 10:50 AM

Thank you for your quick response Rao.

I'll retest again. I'm using the UNC that points to a NAS, \basstation

I wonder whether read/write access could affect the result.

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion