anatta anatta wrote:
> 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?
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
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
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