Raised This Month: $32 Target: $400
 8% 

Map recursive copy


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
elantra86
Member
Join Date: Feb 2014
Old 02-19-2020 , 15:00   Map recursive copy
Reply With Quote #1

Hi every one - want to create plugin for download and install map on server cs 1.6

now i have downloaded rar - and unarchived rar on folder addons/amxmodx/data/downloader/temp

i have files and folders here like gfx/env/brother/like.tga

Question: how i can copy to root game folder all files recursively ? Can anybody help? Is it possible ?
elantra86 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-20-2020 , 00:01   Re: Map recursive copy
Reply With Quote #2

Create loops to traverse all files and copy each one individually.
__________________
fysiks is offline
elantra86
Member
Join Date: Feb 2014
Old 02-20-2020 , 03:40   Re: Map recursive copy
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
Create loops to traverse all files and copy each one individually.
Can you show exaple plz. I dont understand what you say. Im young coder in pawn))
elantra86 is offline
elantra86
Member
Join Date: Feb 2014
Old 02-20-2020 , 04:32   Re: Map recursive copy
Reply With Quote #4

Now i can get end file path like this
wad addons/amxmodx/data/downloader/temp/cstrike/awp_elite.wad- sz_dest
maps addons/amxmodx/data/downloader/temp/cstrike/maps/cg_d2block_ez.bsp- sz_dest maps/
sound addons/amxmodx/data/downloader/temp/cstrike/sound/cg/www/www.wav- sz_dest sound/
sound addons/amxmodx/data/downloader/temp/cstrike/sound/cg/www/eee/ddd/ease_conv.wav- sz_dest sound/
sound addons/amxmodx/data/downloader/temp/cstrike/sound/cg/www/eee/eee.wav- sz_dest sound/
sound addons/amxmodx/data/downloader/temp/cstrike/sound/cg/cg.wav- sz_dest sound/

but cant create loop for every folder.
how to create folders like this:
if folder sound - mkdir cg
mkdir cg/www
mkdir cg/www/eee/
mkdir cg/www/eee/ddd

Last edited by elantra86; 02-20-2020 at 11:52.
elantra86 is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 02-20-2020 , 22:54   Re: Map recursive copy
Reply With Quote #5

This worth a read, I think for your project.
https://bitbucket.org/Svedrin/maptransfer/wiki/Home
__________________

Last edited by DJEarthQuake; 02-20-2020 at 23:04.
DJEarthQuake is offline
Reply


Thread Tools
Display Modes

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 22:15.


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