Hey,
I'm creating a simple terminal like file browser and until now I've been tracking the current directory name by hand, however, running "cd .." would result in a "current directory" called "/dir/.." instead of "/".
So I was wondering, how would I get the current directory name? (similar to something like readdir I suppose)
[SOLVED]Current directory name
[SOLVED]Current directory name
Last edited by Quipeace on Tue Jan 12, 2010 4:07 pm, edited 1 time in total.
-
- Site Admin
- Posts: 1986
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: Current directory name
Thank you very much, I appreciate it , I'll try it as soon as I get home.
EDIT: Works perfectly
EDIT: Works perfectly
Who is online
Users browsing this forum: No registered users and 0 guests