When using google colab with python language. How exactly do I copy specific amount of data like 100 file (from 900 file) from downloaded directory to another directory? Since I use this command it copying all file din directory
!cp /content/dataset/train/rottenapples/*.png /content/fresh_rotten/rotten_pic
Is it using loop with specific range?
You can run this code in a code cell in Google Colab to copy the specified number of files. Adjust the paths (source_dir and destination_dir) according to your actual directory structure.