<filename>src/api-explorer/v3-1/z_underscore_v3_1.py
from unipath import Path
import os

# CircleCI will run this script 3rd

# This will add an "_" to all the fresh .md files in v3-1


# All markdown files in the 'includes' folder in Slate portion of the Dev Center repo
#os.chdir(r"C:\Users\I860605\Desktop\Dev_Center_New\dev_concur\src\api-explorer\v3-1")

v3_1 = Path(r"./src/api-explorer/v3-1")
#Add "_" to the beginning of every markdown file that does not have it
for markdown in v3_1.listdir():
    if "_" not in markdown:
        new_name = "_" + markdown        
        os.rename(markdown, new_name)
        print("Adding '_' to file...Filename has just been updated to: ", new_name)
print("All filenames already have correct formatting")
    
<filename>src/api-explorer/v3-1/z_underscore_v3_1.py
from unipath import Path
import os

# CircleCI will run this script 3rd

# This will add an "_" to all the fresh .md files in v3-1


# All markdown files in the 'includes' folder in Slate portion of the Dev Center repo
#os.chdir(r"C:\Users\I860605\Desktop\Dev_Center_New\dev_concur\src\api-explorer\v3-1")

v3_1 = Path(r"./src/api-explorer/v3-1")
#Add "_" to the beginning of every markdown file that does not have it
for markdown in v3_1.listdir():
    if "_" not in markdown:
        new_name = "_" + markdown        
        os.rename(markdown, new_name)
        print("Adding '_' to file...Filename has just been updated to: ", new_name)
print("All filenames already have correct formatting")
    
# CircleCI will run this script 3rd # This will add an "_" to all the fresh .md files in v3-1 # All markdown files in the 'includes' folder in Slate portion of the Dev Center repo #os.chdir(r"C:\Users\I860605\Desktop\Dev_Center_New\dev_concur\src\api-explorer\v3-1") #Add "_" to the beginning of every markdown file that does not have it