Answers for "add prefix to names in directory python"

0

add prefix to names in directory python

Python script.

import os
[os.rename(f, f.replace('', 'xyz_')) for f in os.listdir('.') 
if not f.startswith('.')]
Posted by: Guest on January-10-2022

Code answers related to "add prefix to names in directory python"

Python Answers by Framework

Browse Popular Code Answers by Language