Testing path existence using UNC format

Post Reply
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Testing path existence using UNC format

Post by hua »

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.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Testing path existence using UNC format

Post by nageswaragunupudi »

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
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Re: Testing path existence using UNC format

Post by hua »

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.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
Post Reply