Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » DirectoryUp doesn't seem to work.
DirectoryUp doesn't seem to work. [message #18554] Wed, 08 October 2008 03:15 Go to previous message
blueapples is currently offline  blueapples
Messages: 10
Registered: October 2008
Promising Member
I have a currentDir String that contains the directory last loaded into a FileList. I am adding a ".." item to the top of the FileList manually so that the user can navigate upwards by double clicking this, therefore I looked for a function to get the directory of the current directory and found DirectoryUp. Problem is, on Linux anyway, it doesn't seem to work.

String currentDir, file;
currentDir = "/home/Isaac/";
file = DirectoryUp(currentDir, true);
// At this point file seems to be a long string full of blanks.


I traced into this function and found it a little confounding, lots of intertwined execution paths for different platforms. If I do not specify the "basedir" value as true, the code actually gets into PLATFORM_X11 code near the bottom of the function - which I do not believe is correct. Linux should be a POSIX platform...

Anyway.. any help? Smile
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Drawing raw data to an Image / Draw object?
Next Topic: More small gems
Goto Forum:
  


Current Time: Sat Apr 20 05:30:16 CEST 2024

Total time taken to generate the page: 0.01774 seconds