I am working within an ESRI ArcGIS environment. I have a folder full of .xyz files that are named to a specific old file format such as
2014516_MS_005.xyz I want to be able to loop through the whole folder and rename each file to a new format such as
MS_e1614.xyz. As you can see there is alot of string displacement and new characters introduced.
Can you guys n gals point me to the right direction if there is already a resource similar to this question?
Here is what i have so far.
import os survey_type = ['MB','SB'] #File path for directory of interest folder = r'C:\Data Management\Implementation\xyz_data' #List of all files in set directory file_list = os.listdir(folder) print file_list