I have this string in my database:
/home/tena/web/tempTDLuploads/tdl.tdl
I need to truncate the file and only get the directory:
/home/tena/web/tempTDLuploads/
How can I always truncate everything past the "final" directory (no matter how far down the dir. structure goes)?
Thanks!