Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Bug? Directoryexists does not recognise directory if...
Bug? Directoryexists does not recognise directory if... [message #44432] |
Wed, 11 March 2015 19:10 |
aftershock
Messages: 143 Registered: May 2008
|
Experienced Member |
|
|
Directoryexists does not recognise directory if path contains a separator at the end on Windows.
Bug?
That is why I need to that.
String dir = GetFileDirectory ( filename );
if ( dir.EndsWith ( DIR_SEPS ) )
dir = dir.Left ( dir.GetCount() - 1 );
if ( DirectoryExists ( dir ) )
{
A.
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Dec 13 22:01:59 CET 2024
Total time taken to generate the page: 0.03411 seconds
|