Answers for "multiple files and folder copy in command"

1

Use cp command to copy multiple files from a directory

cp /home/usr/dir/{file1,file2,file3,file4} /home/usr/destination/
Posted by: Guest on May-11-2021
0

copy multiple files from one folder to another folder

import shutil
import os

os.chdir('source_image_dir_path')
dst_dir = "your_destination_dir_path"
for f in os.listdir():
    shutil.copy(f, dst_dir)
Posted by: Guest on April-18-2021

Code answers related to "multiple files and folder copy in command"

Browse Popular Code Answers by Language