I created this program to rename all my random wallpapers names to `wallpaper1`, `wallpaper2` and so on by using this code:

```
import os
path = os.chdir("/home/samipkarki/Pictures/Wallpapers")
value = 1
for file in os.listdir("path"):
    new_filename = f'wallpaper{value}.jpg'
    os.rename(file, new_filename)
    value += 1

```

But every time I run the code the half files get renamed others get permanently deleted.