in reply to To navigate further in the given directory
How do I get to the last directory
What do you mean by get to? Open it? Get its inode number? Get its content? Extract the directory name from the directory path (i.e. pure string handling)?