U++ framework
Do not panic. Ask here before giving up.

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 Go to previous message
aftershock is currently offline  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.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: rounding to decimals implementation
Next Topic: Is guilock safe?
Goto Forum:
  


Current Time: Sun May 03 20:52:01 GMT+2 2026

Total time taken to generate the page: 0.00536 seconds