457 |
else |
else |
458 |
return drvDir; |
return drvDir; |
459 |
} |
} |
460 |
|
else if (path.equals("")) |
461 |
|
return System.getProperty ("user.dir"); |
462 |
else |
else |
463 |
return System.getProperty ("user.dir") + separatorChar + path; |
return System.getProperty ("user.dir") + separatorChar + path; |
464 |
} |
} |
545 |
{ |
{ |
546 |
String prefix = null; |
String prefix = null; |
547 |
int nameSeqIndex = 0; |
int nameSeqIndex = 0; |
548 |
|
|
549 |
|
if (path.equals("")) |
550 |
|
return null; |
551 |
|
|
552 |
// The "prefix", if present, is the leading "/" on UNIX and |
// The "prefix", if present, is the leading "/" on UNIX and |
553 |
// either the drive specifier (e.g. "C:") or the leading "\\" |
// either the drive specifier (e.g. "C:") or the leading "\\" |
959 |
public URI toURI() |
public URI toURI() |
960 |
{ |
{ |
961 |
String abspath = getAbsolutePath(); |
String abspath = getAbsolutePath(); |
962 |
|
|
963 |
if (isDirectory()) |
if (isDirectory() || path.equals("")) |
964 |
abspath = abspath + separatorChar; |
abspath = abspath + separatorChar; |
965 |
|
|
966 |
if (separatorChar == '\\') |
if (separatorChar == '\\') |