I am creating a medium size application.
This application consists of a lot of products.
Now these products have many images (one product can have 5 - 6 imag
chmod()
For checking the existence of some folder you can use is_dir() too.
is_dir()