Re: [Gambas-user] Add new command to: Copy directories recursively

2014-08-26 Thread Caveat
Hello List Although there is always cp -r, it makes for a very unportable program if you depend on calling external programs. Better to build it in to the language if it's generally and genuinely useful, or to make a callable function in some public repository of Gambas code, so people don't

Re: [Gambas-user] Add new command to: Copy directories recursively

2014-08-26 Thread Julio Sanchez
Caveat: Yes, that's the idea Regards 2014-08-26 8:21 GMT+02:00 Caveat gam...@caveat.demon.co.uk: Hello List Although there is always cp -r, it makes for a very unportable program if you depend on calling external programs. Better to build it in to the language if it's generally and

Re: [Gambas-user] Add new command to: Copy directories recursively

2014-08-26 Thread Benoît Minisini
Le 26/08/2014 08:21, Caveat a écrit : Hello List Although there is always cp -r, it makes for a very unportable program if you depend on calling external programs. Better to build it in to the language if it's generally and genuinely useful, or to make a callable function in some public

Re: [Gambas-user] Add new command to: Copy directories recursively

2014-08-26 Thread Fabien Bodard
But gambas can't copy from a device to a different one Le 26 août 2014 09:11, Julio Sanchez jusabejus...@gmail.com a écrit : Caveat: Yes, that's the idea Regards 2014-08-26 8:21 GMT+02:00 Caveat gam...@caveat.demon.co.uk: Hello List Although there is always cp -r, it makes for a

[Gambas-user] Add new command to: Copy directories recursively

2014-08-25 Thread Julio Sanchez
Hi, could you add a new order within gambas3 to copy directories recursively. Something like this: PUBLIC http://gambaswiki.org/wiki/lang/public SUB http://gambaswiki.org/wiki/lang/sub copia_dir(path_origen AS http://gambaswiki.org/wiki/lang/as String http://gambaswiki.org/wiki/lang/type/string,

Re: [Gambas-user] Add new command to: Copy directories recursively

2014-08-25 Thread Benoît Minisini
Le 25/08/2014 22:28, Julio Sanchez a écrit : Hi, could you add a new order within gambas3 to copy directories recursively. Something like this: PUBLIC http://gambaswiki.org/wiki/lang/public SUB http://gambaswiki.org/wiki/lang/sub copia_dir(path_origen AS http://gambaswiki.org/wiki/lang/as

Re: [Gambas-user] Add new command to: Copy directories recursively

2014-08-25 Thread Tobias Boege
On Mon, 25 Aug 2014, Julio Sanchez wrote: Hi, could you add a new order within gambas3 to copy directories recursively. Something like this: PUBLIC http://gambaswiki.org/wiki/lang/public SUB http://gambaswiki.org/wiki/lang/sub copia_dir(path_origen AS http://gambaswiki.org/wiki/lang/as

Re: [Gambas-user] Add new command to: Copy directories recursively

2014-08-25 Thread B Bruen
On Mon, 25 Aug 2014 22:28:29 +0200 Julio Sanchez jusabejus...@gmail.com wrote: Hi, could you add a new order within gambas3 to copy directories recursively. (snippped) Here's my version, slightly different to Tobi's. I find that it is better to provide an array of all the paths in the