Re: [Tutor] copy files selectively from source to destination

2016-12-05 Thread Emile van Sebille
On 12/05/2016 08:20 AM, anatta anatta wrote: Dear tutor! Here is my working code - to copy files from one drive to another. I however want to copy selective files. For example I like to copy only .txt files only from the source to destination, and not other types of files. How could I do

Re: [Tutor] copy files selectively from source to destination

2016-12-05 Thread Alan Gauld via Tutor
On 05/12/16 16:20, anatta anatta wrote: > I however want to copy selective files. > For example I like to copy only .txt files only > How could I do this selective copying? By applying an if test just before you copy filetype = '.txt' # or read it as an input ... if sourcefile extension

[Tutor] copy files selectively from source to destination

2016-12-05 Thread anatta anatta
Dear tutor! Here is my working code - to copy files from one drive to another. I however want to copy selective files. For example I like to copy only .txt files only from the source to destination, and not other types of files. How could I do this selective copying? Thanks in advance for