Raised This Month: $ Target: $400
 0% 

Cutting Folder from a String


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 09-08-2013 , 13:18   Cutting Folder from a String
Reply With Quote #1

Hey everybody,

For my plugin I need to cut-off the folder of a string to create it if it doesn't exist, but I couldn't find any existing method to do that. Anyone has an Idea how to do that?

String Format (Examples) :

Quote:
maps/de_tuscan.bsp
models/de_tuscan/tuscan_grass1a.mdl
gfx/env/dustup.tga
What I need:

Quote:
maps
models/de_tuscan
gfx/env
__________________

Last edited by Kia; 09-08-2013 at 13:28.
Kia is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode