[SOLVED]Current directory name
Posted: Mon Jan 11, 2010 9:13 pm
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)
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)