mercredi 14 novembre 2018

I have multiple feature files which are incorrectly named. I'd like to rename these from .Feature to .feature using Python

So I have a list of feature files in a directory and I want to rename them from .Feature file type to .feature

I'd like ideally, to run a loop targeting .Feature and if it is .Feature, alter nothing bar the file type, as shown below.

    testFeaturefile1.Feature >>> testFeaturefile1.feature
    testFeaturefile2.Feature >>> testFeaturefile2.feature
    testFeaturefile3.Feature >>> testFeaturefile3.feature
    testFeaturefile4.Feature >>> testFeaturefile4.feature

Aucun commentaire:

Enregistrer un commentaire