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.
Re: DirectoryUp doesn't seem to work. [message #18561 is a reply to message #18554] |
Wed, 08 October 2008 12:13 ![Go to previous message Go to previous message](theme/default/images/up.png) ![Go to next message Go to previous message](theme/default/images/down.png) |
mr_ped
Messages: 825 Registered: November 2005 Location: Czech Republic - Praha
|
Experienced Contributor |
|
|
I did take a short look at that function, and I find it quite a mess... erm.
So far I think the PLATFORM_X11 vs PLATFORM_POSIX is little bug, but the FileSel is never(?) included without flagGUI, so the PLATFORM_X11 is defined anyway.
And I guess the function should move the input variable "dir" up, and return the name of the directory it was in before call.
So in your example the result should be:
file = "Isaac/" or "Isaac"
currentDir = "/home" or "/home/"
The problem is maybe with the last "/" at end of "/home/Isaac/" which will fool a bit the "if (basedir)" code path?
IMHO I would rewrite this function from scratch, would somebody tell me how exactly it should behave.
I think I will try anyway, I'm still not sure what "basedir" is supposed to do, but I will try to figure it out.
[Updated on: Wed, 08 October 2008 12:14] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Jun 15 15:41:46 CEST 2024
Total time taken to generate the page: 0.02769 seconds
|