import os import time base_path = '/home/kishore/my_files'
''' You can remove empty directory by rmdir function. But to remove non empty directory we have to