Hi Mark,

In the imap library there are several lines of code to detect if a path is 
relative or not.
The code to detect an absolute path on the windows platform is not sufficient I 
think.

if (name[1] == ':')

Is is detecting if the drive is specified but not if the path is relative or 
absolute.
The path c:tmp is valid and relative to the current directory on drive c.

The code below does also detect if the path is relative or absolute:
if (name[1] == ':' &&  (name[2] == '/' || name[2] == '\\'))


regards,
Ties Molenhuis
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to