Page 1 of 1

Testing path existence using UNC format

PostPosted: Thu Mar 05, 2020 7:05 am
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

Re: Testing path existence using UNC format

PostPosted: Thu Mar 05, 2020 9:52 am
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.

Re: Testing path existence using UNC format

PostPosted: Thu Mar 05, 2020 10:50 am
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.