[Python] File operation using if statement

problem

There should be 100 folders with 2 images in them. However, some folders have only one.

Purpose

Collect only the folders that contain only one image in the "mada" folder.

Details

For detailed explanation and code, see [Python] File operation using if statement.

Recommended Posts

[Python] File operation using if statement
Python if statement
[Python] if statement
Python basic if statement
Addition with Python if statement
Extract the targz file using python
[python] Correct usage of if statement
[Automation with python! ] Part 2: File operation
[Python] Multiplication table using for statement
Mouse operation using Windows API in Python
[Introduction to Udemy Python3 + Application] 33. if statement
Swap 1 and 2 without using an if statement
Script python file
[python] vector operation
Unfamiliar if statement
Start using Python
Python file processing
Python OS operation
Python exec statement
[Python] Matrix operation
Python assert statement
Scraping using Python
Create a GIF file using Pillow in Python
[Python] Split a large Flask file using Blueprint
Create wav file from GLSL shader using python3
I tried reading a CSV file using Python
Run a Python file from html using Django
Create a MIDI file in Python using pretty_midi
[Python] Operation of enumerate
File operations in Python
[Python] File / directory operations
Operate Redmine using Python Redmine
[Note] File reading ~ Python ~
Python basics ② for statement
File processing in Python
Upload JPG file using Google Drive API in Python
Fibonacci sequence using Python
Try creating a compressed file using Python and zlib
Data analysis using Python 0
Collectively register data in Firestore using csv file in Python
Create an image file using PIL (Python Imaging Library).
Automatically execute python file
Reading pyc file (Python 3.5.2)
Data cleaning using Python
Linux command [File operation]
File operations in Python
Using Python #external packages
Python directory operation summary
WiringPi-SPI communication using Python
Create your first GDSII file in Python using gdspy
Python logical operation stumbling
Search Twitter using Python
A Java programmer studied Python. (for, if, while statement)
Speech file recognition by Google Speech API v2 using Python
Name identification using python
Notes using Python subprocesses
Python decorator operation memo
Read Python csv file
python external file reading
[Python] for statement error
[python] Array slice operation