PDA

View Full Version : Can't understand dirname command...


StefanStavrev
08-24-2006, 05:31 AM
hey guys :)

Will someone please explain me what serves this command for ? dirname

I read help , but did not help...

isoparmB
08-24-2006, 06:36 AM
It returns the path minus the last level, like if you just need the path to:

/home/3duser/somebody/file.tga

without the actual file name in the string. It will return:

/home/3duser/somebody

It's a convenience string function for deriving file paths if you're given, for example, the complete path to a file texture.

StefanStavrev
08-24-2006, 06:58 AM
Thanks Bro :)

CGTalk Moderation
08-24-2006, 06:58 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.